Class SampledResults<T>
java.lang.Object
org.moeaframework.analysis.sample.SampledResults<T>
- Type Parameters:
T
- the type of the result
- All Implemented Interfaces:
Partition<Sample,
,T> Displayable
,Formattable<org.apache.commons.lang3.tuple.Pair<Sample,
T>>
Collection of samples and their result value.
-
Constructor Summary
ConstructorDescriptionSampledResults
(ParameterSet parameterSet) Constructs a new sampled results collection.SampledResults
(Samples samples) Constructs a new sampled results collection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given sample and result value.TabularData<org.apache.commons.lang3.tuple.Pair<Sample,
T>> Returns the contents of this object as aTabularData
instance, which can be used to save, print, or format the data in various ways.int
size()
Returns the number of key-value pairs in this partition.stream()
Returns aStream
of the key-value pairs in this partition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.util.format.Displayable
display
-
Constructor Details
-
SampledResults
Constructs a new sampled results collection.- Parameters:
samples
- the samples
-
SampledResults
Constructs a new sampled results collection.- Parameters:
parameterSet
- the parameters contained in each sample
-
-
Method Details
-
add
Adds the given sample and result value.- Parameters:
sample
- the sampleresult
- the result value
-
size
public int size()Description copied from interface:Partition
Returns the number of key-value pairs in this partition. -
stream
Description copied from interface:Partition
Returns aStream
of the key-value pairs in this partition. -
asTabularData
Description copied from interface:Formattable
Returns the contents of this object as aTabularData
instance, which can be used to save, print, or format the data in various ways.- Specified by:
asTabularData
in interfaceFormattable<T>
- Specified by:
asTabularData
in interfacePartition<Sample,
T> - Returns:
- the
TabularData
instance
-