Class NumericalMeasure
java.lang.Object
smile.data.measure.NumericalMeasure
- All Implemented Interfaces:
Serializable, Measure
- Direct Known Subclasses:
IntervalScale, RatioScale
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NumberFormatformat()Returns the thread-local NumberFormat instance.Returns the string representation of an object in the measure.Returns a measurement value object represented by the argument string s.
-
Constructor Details
-
NumericalMeasure
Constructor.- Parameters:
format- the prototype number format (used as a template per thread).
-
-
Method Details
-
format
Returns the thread-local NumberFormat instance.- Returns:
- the thread-local format.
-
toString
-
valueOf
Description copied from interface:MeasureReturns a measurement value object represented by the argument string s.- Specified by:
valueOfin interfaceMeasure- Parameters:
s- a string.- Returns:
- the parsed value.
- Throws:
NumberFormatException
-