Enum Class TrendlineType
- All Implemented Interfaces:
Serializable,Comparable<TrendlineType>,Constable
指定如何计算平滑数据波动的趋势线。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription使用方程 y=ab^x 通过点计算最小二乘拟合。使用线性方程 y = mx + b 来计算通过点的最小二乘拟合。使用方程 y = c ln x + b 来计算通过点的最小二乘拟合。使用由数据序列部分计算的一系列平均值。点的数量等于序列中的总点数减去指定周期的点数。使用方程 y = ax^6 + bx^5 + cx^4 + dx^3 + ex^2 + fx + g 通过点计算最小二乘拟合。使用方程 y = ax^b 通过点计算最小二乘拟合。 -
Method Summary
Modifier and TypeMethodDescriptionstatic TrendlineTypeReturns the enum constant of this class with the specified name.static TrendlineType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Logarithmic
使用方程 y = c ln x + b 来计算通过点的最小二乘拟合。 -
Linear
使用线性方程 y = mx + b 来计算通过点的最小二乘拟合。 -
Polynomial
使用方程 y = ax^6 + bx^5 + cx^4 + dx^3 + ex^2 + fx + g 通过点计算最小二乘拟合。 -
Power
使用方程 y = ax^b 通过点计算最小二乘拟合。 -
Exponential
使用方程 y=ab^x 通过点计算最小二乘拟合。 -
MovingAvg
使用由数据序列部分计算的一系列平均值。点的数量等于序列中的总点数减去指定周期的点数。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-