Package edu.cnu.mdi.splot.fit
Enum Class CurveDrawingMethod
- All Implemented Interfaces:
Serializable,Comparable<CurveDrawingMethod>,Constable
Specifies how a curve should be drawn for a data set.
Historically this was named FitType, but that name was misleading
because several options are not fits at all (e.g. connect, stairs, none).
Some drawing methods optionally consume a FitResult (Apache Commons
Math based), or a CubicSpline.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSimple line segments connecting points.Natural cubic spline interpolation (not a fit).Error function fit.Complementary error function fit.Exponential decay fit: A·exp(-x/τ) + C.Single Gaussian fit.Multiple Gaussian fit (sum of Gaussians).Lorentzian (Breit-Wigner / Cauchy) resonance peak fit.No curve drawn.Polynomial least-squares fit.Power law fit: A·x^n + C.Stair-step connection between points. -
Method Summary
Modifier and TypeMethodDescriptiongetName()UI-friendly name for combo boxes, menus, etc.static CurveDrawingMethodFind a method by display name or enum constant name (case-insensitive).toString()static CurveDrawingMethodReturns the enum constant of this class with the specified name.static CurveDrawingMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No curve drawn. -
CONNECT
Simple line segments connecting points. -
STAIRS
Stair-step connection between points. -
CUBICSPLINE
Natural cubic spline interpolation (not a fit). -
POLYNOMIAL
Polynomial least-squares fit. -
GAUSSIAN
Single Gaussian fit. -
GAUSSIANS
Multiple Gaussian fit (sum of Gaussians). -
ERF
Error function fit. -
ERFC
Complementary error function fit. -
EXPONENTIAL_DECAY
Exponential decay fit: A·exp(-x/τ) + C. -
POWER_LAW
Power law fit: A·x^n + C. -
LORENTZIAN
Lorentzian (Breit-Wigner / Cauchy) resonance peak fit.
-
-
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
-
getName
UI-friendly name for combo boxes, menus, etc.- Returns:
- display name
-
toString
- Overrides:
toStringin classEnum<CurveDrawingMethod>
-
getValue
Find a method by display name or enum constant name (case-insensitive).- Parameters:
s- display name or enum name- Returns:
- matching method, or
nullif none
-