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 TwoStepMapper
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 TypeMethodDescriptionvoidcombine(SampleSet.CombineableSet<N> other) This method can be used to combine the state of multiple instances.voidconsume(double item) voidInput/consume the items that should be mapped(package private) NumberList<N> Output the mapped resultsvoidreset()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.CombineableThis method can be used to combine the state of multiple instances. The intermediate/internal state from one instance is combined into another.- Specified by:
combinein interfaceTwoStepMapper.Combineable<N extends Comparable<N>, SampleSet, SampleSet.CombineableSet<N extends Comparable<N>>>
-
consume
public void consume(double item) -
consume
Description copied from interface:TwoStepMapperInput/consume the items that should be mapped- Specified by:
consumein interfaceTwoStepMapper<N extends Comparable<N>, SampleSet>
-
getResults
Description copied from interface:TwoStepMapperOutput the mapped results- Specified by:
getResultsin interfaceTwoStepMapper<N extends Comparable<N>, SampleSet>
-
newInstance
-
reset
public void reset()Description copied from interface:TwoStepMapperReset, so it can be re-used- Specified by:
resetin interfaceTwoStepMapper<N extends Comparable<N>, SampleSet>
-
getNumbers
NumberList<N> getNumbers()
-