Package org.ojalgo.random
Class SampleSet.CombineableSet<N extends Comparable<N>>
java.lang.Object
org.ojalgo.random.SampleSet.CombineableSet<N>
- All Implemented Interfaces:
TwoStepMapper<N,
,SampleSet> TwoStepMapper.Combineable<N,
SampleSet, SampleSet.CombineableSet<N>>
- Enclosing class:
SampleSet
public static final class SampleSet.CombineableSet<N extends Comparable<N>>
extends Object
implements TwoStepMapper.Combineable<N,SampleSet,SampleSet.CombineableSet<N>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ojalgo.type.function.TwoStepMapper
TwoStepMapper.Combineable<T,
R, A extends TwoStepMapper.Combineable<T, R, A>>, TwoStepMapper.KeyCounter<T, G>, TwoStepMapper.Mergeable<T, R>, TwoStepMapper.SimpleCache<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NumberList.ListFactory
<N> private final NumberList
<N> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
combine
(SampleSet.CombineableSet<N> other) This method can be used to combine the state of multiple instances.void
consume
(double item) void
Input/consume the items that should be mapped(package private) NumberList
<N> Output the mapped resultsvoid
reset()
Reset, so it can be re-used
-
Field Details
-
myFactory
-
myNumbers
-
-
Constructor Details
-
CombineableSet
CombineableSet(NumberList.ListFactory<N> factory)
-
-
Method Details
-
combine
Description copied from interface:TwoStepMapper.Combineable
This method can be used to combine the state of multiple instances. The intermediate/internal state from one instance is combined into another.- Specified by:
combine
in interfaceTwoStepMapper.Combineable<N extends Comparable<N>,
SampleSet, SampleSet.CombineableSet<N extends Comparable<N>>>
-
consume
public void consume(double item) -
consume
Description copied from interface:TwoStepMapper
Input/consume the items that should be mapped- Specified by:
consume
in interfaceTwoStepMapper<N extends Comparable<N>,
SampleSet>
-
getResults
Description copied from interface:TwoStepMapper
Output the mapped results- Specified by:
getResults
in interfaceTwoStepMapper<N extends Comparable<N>,
SampleSet>
-
newInstance
-
reset
public void reset()Description copied from interface:TwoStepMapper
Reset, so it can be re-used- Specified by:
reset
in interfaceTwoStepMapper<N extends Comparable<N>,
SampleSet>
-
getNumbers
NumberList<N> getNumbers()
-