Package microsim.statistics.functions
Class MaxArrayFunction.Float
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.AbstractArrayFunction
microsim.statistics.functions.MaxArrayFunction
microsim.statistics.functions.MaxArrayFunction.Float
- All Implemented Interfaces:
EventListener,IDoubleSource,IFloatSource,IUpdatableSource
- Enclosing class:
- MaxArrayFunction
MaxFunction operating on float source values.
- Author:
- Michele Sonnessa and Ross Richardson
-
Nested Class Summary
Nested classes/interfaces inherited from class microsim.statistics.functions.MaxArrayFunction
MaxArrayFunction.Double, MaxArrayFunction.Float, MaxArrayFunction.Integer, MaxArrayFunction.LongNested classes/interfaces inherited from interface microsim.statistics.IDoubleSource
IDoubleSource.VariablesNested classes/interfaces inherited from interface microsim.statistics.IFloatSource
IFloatSource.Variables -
Field Summary
FieldsFields inherited from class microsim.statistics.functions.AbstractArrayFunction
dblSource, fltSource, intSource, lngSource, type, TYPE_DBL, TYPE_FLT, TYPE_INT, TYPE_LNGFields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker -
Constructor Summary
ConstructorsConstructorDescriptionFloat(IFloatArraySource source) Create a maximum function on an float array source. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(float[] data) Apply the function on a the given array of float values.doublegetDoubleValue(Enum<?> variableID) Return the double value corresponding to the given variableIDfloatgetFloatValue(Enum<?> id) Return the float value corresponding to the given variableIDMethods inherited from class microsim.statistics.functions.AbstractArrayFunction
apply, apply, apply, applyFunctionMethods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, onEvent, setCheckingTime, updateSource
-
Field Details
-
fmax
protected float fmax
-
-
Constructor Details
-
Float
Create a maximum function on an float array source.- Parameters:
source- The data source.
-
-
Method Details
-
apply
public void apply(float[] data) Description copied from class:AbstractArrayFunctionApply the function on a the given array of float values.- Overrides:
applyin classAbstractArrayFunction- Parameters:
data- A source array of values.
-
getFloatValue
Description copied from interface:IFloatSourceReturn the float value corresponding to the given variableID- Specified by:
getFloatValuein interfaceIFloatSource- Parameters:
id- A unique identifier for a variable.- Returns:
- The current float value of the required variable.
-
getDoubleValue
Description copied from interface:IDoubleSourceReturn the double value corresponding to the given variableID- Specified by:
getDoubleValuein interfaceIDoubleSource- Parameters:
variableID- A unique identifier for a variable.- Returns:
- The current double value of the required variable.
-