Package adams.data.statistics
Enum ArrayHistogram.BinCalculation
- java.lang.Object
-
- java.lang.Enum<ArrayHistogram.BinCalculation>
-
- adams.data.statistics.ArrayHistogram.BinCalculation
-
- All Implemented Interfaces:
Serializable
,Comparable<ArrayHistogram.BinCalculation>
- Enclosing class:
- ArrayHistogram<T extends Number>
public static enum ArrayHistogram.BinCalculation extends Enum<ArrayHistogram.BinCalculation>
Enumeration for the bin calculation.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayHistogram.BinCalculation
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArrayHistogram.BinCalculation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANUAL
public static final ArrayHistogram.BinCalculation MANUAL
manual.
-
FREQUENCY
public static final ArrayHistogram.BinCalculation FREQUENCY
frequency.
-
DENSITY
public static final ArrayHistogram.BinCalculation DENSITY
density.
-
STURGES
public static final ArrayHistogram.BinCalculation STURGES
Sturges' formula.
-
SCOTT
public static final ArrayHistogram.BinCalculation SCOTT
Scott's choice.
-
SQRT
public static final ArrayHistogram.BinCalculation SQRT
Square root choice.
-
-
Method Detail
-
values
public static ArrayHistogram.BinCalculation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ArrayHistogram.BinCalculation c : ArrayHistogram.BinCalculation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArrayHistogram.BinCalculation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-