Package org.pepstock.charba.client.enums
Enum RegressionType
- java.lang.Object
-
- java.lang.Enum<RegressionType>
-
- org.pepstock.charba.client.enums.RegressionType
-
- All Implemented Interfaces:
Serializable
,Comparable<RegressionType>
,Key
public enum RegressionType extends Enum<RegressionType> implements Key
Enumerates the available regression types.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPONENTIAL
Identify an exponential regression,ExponentialRegression
.LINEAR
Identify a simple linear regression,LinearRegression
.POLYNOMIAL
Identify a polynomial regression,PolynomialRegression
.POWER
Identify a power regression,PowerRegression
.ROBUST_POLYNOMIAL
Identify a robust polynomial regression,RobustPolynomialRegression
.THEIL_SEN
Identify an TheilSen regression,TheilSenRegression
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic RegressionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RegressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR
public static final RegressionType LINEAR
Identify a simple linear regression,LinearRegression
.
-
POLYNOMIAL
public static final RegressionType POLYNOMIAL
Identify a polynomial regression,PolynomialRegression
.
-
POWER
public static final RegressionType POWER
Identify a power regression,PowerRegression
.
-
EXPONENTIAL
public static final RegressionType EXPONENTIAL
Identify an exponential regression,ExponentialRegression
.
-
THEIL_SEN
public static final RegressionType THEIL_SEN
Identify an TheilSen regression,TheilSenRegression
.
-
ROBUST_POLYNOMIAL
public static final RegressionType ROBUST_POLYNOMIAL
Identify a robust polynomial regression,RobustPolynomialRegression
.
-
-
Method Detail
-
values
public static RegressionType[] 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 (RegressionType c : RegressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegressionType 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
-
-