Package microsim.statistics.functions
Class MaxArrayFunction
java.lang.Object
microsim.statistics.functions.AbstractFunction
microsim.statistics.functions.AbstractArrayFunction
microsim.statistics.functions.MaxArrayFunction
- All Implemented Interfaces:
EventListener
,DoubleSource
,UpdatableSource
- Direct Known Subclasses:
MaxArrayFunction.Double
,MaxArrayFunction.Integer
,MaxArrayFunction.Long
This class computes the maximum value in an array of source values. According to the source data type there are three
data-type oriented implementations. Each of them implements always the
DoubleSource
interface.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MaxFunction operating on double source values.static class
MaxFunction operating on integer source values.static class
MaxFunction operating on long source values.Nested classes/interfaces inherited from interface microsim.statistics.DoubleSource
DoubleSource.Variables
-
Field Summary
Fields inherited from class microsim.statistics.functions.AbstractArrayFunction
dblSource, intSource, lngSource, type, TYPE_DBL, TYPE_INT, TYPE_LNG
Fields inherited from class microsim.statistics.functions.AbstractFunction
timeChecker
-
Constructor Summary
ConstructorDescriptionMaxArrayFunction
(@NonNull DoubleArraySource source) Create a maximum function on a double array source.MaxArrayFunction
(@NonNull IntArraySource source) Creates a maximum function on an integer array source.MaxArrayFunction
(@NonNull LongArraySource source) Creates a maximum function on a long array source. -
Method Summary
Methods inherited from class microsim.statistics.functions.AbstractArrayFunction
apply, apply, apply, applyFunction
Methods inherited from class microsim.statistics.functions.AbstractFunction
isCheckingTime, onEvent, setCheckingTime, updateSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface microsim.statistics.DoubleSource
getDoubleValue
-
Constructor Details
-
MaxArrayFunction
Creates a maximum function on an integer array source.- Parameters:
source
- The data source.- Throws:
NullPointerException
- whensource
isnull
.
-
MaxArrayFunction
Creates a maximum function on a long array source.- Parameters:
source
- The data source.- Throws:
NullPointerException
- whensource
isnull
.
-
MaxArrayFunction
Create a maximum function on a double array source.- Parameters:
source
- The data source.- Throws:
NullPointerException
- whensource
isnull
.
-