Package org.moeaframework.util.weights
Interface WeightGenerator
- All Known Implementing Classes:
FixedWeights
,NormalBoundaryIntersectionGenerator
,RandomGenerator
,UniformDesignGenerator
public interface WeightGenerator
Interface for generating a sequence of weights. A weight generator must satisfy these conditions:
- Each individual weight is
0.0 <= w[i] <= 1.0
. - The sum of all weights must be exactly
1.0
.
-
Method Summary
-
Method Details
-
size
int size()Returns the number of weights that will be generated.- Returns:
- the number of weights that will be generated
-
generate
List<double[]> generate()Returns the generated weights.- Returns:
- the generated weights
-