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
ConstructorsConstructorDescriptionSampledResults(ParameterSet parameterSet) Constructs a new sampled results collection.SampledResults(Samples samples) Constructs a new sampled results collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given sample and result value.TabularData<org.apache.commons.lang3.tuple.Pair<Sample,T>> Returns the contents of this object as aTabularDatainstance, which can be used to save, print, or format the data in various ways.intsize()Returns the number of key-value pairs in this partition.stream()Returns aStreamof the key-value pairs in this partition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PartitionReturns the number of key-value pairs in this partition. -
stream
Description copied from interface:PartitionReturns aStreamof the key-value pairs in this partition. -
asTabularData
Description copied from interface:FormattableReturns the contents of this object as aTabularDatainstance, which can be used to save, print, or format the data in various ways.- Specified by:
asTabularDatain interfaceFormattable<T>- Specified by:
asTabularDatain interfacePartition<Sample,T> - Returns:
- the
TabularDatainstance
-