Class ParameterBuilder.IntegerBuilder
java.lang.Object
org.moeaframework.analysis.parameter.ParameterBuilder.IntegerBuilder
- Enclosing class:
- ParameterBuilder
A typed parameter builder for integer values.
-
Method Summary
Modifier and TypeMethodDescriptionconstant
(int value) Builds a constant parameter with the given value.random
(int startInclusive, int endInclusive, int count) Builds an enumeration of values sampled uniformly at random between the start and end bounds.range
(int startInclusive, int endInclusive) Builds an enumeration of all values between the start and end bounds.range
(int startInclusive, int endInclusive, int stepSize) Builds an enumeration of values between the start and end bounds, incrementing by the given step size.rangeExclusive
(int startInclusive, int endExclusive) Builds an enumeration of all values between the start and end bounds.rangeExclusive
(int startInclusive, int endExclusive, int stepSize) Builds an enumeration of values between the start and end bounds, incrementing by the given step size.sampledBetween
(int startInclusive, int endInclusive) Builds a parameter that samples values uniformly at random between the start and end bounds.withValues
(int... values) Builds an enumeration with the given values.
-
Method Details
-
constant
Builds a constant parameter with the given value.- Parameters:
value
- the constant value- Returns:
- the parameter
-
withValues
Builds an enumeration with the given values.- Parameters:
values
- the enumerated values- Returns:
- the parameter
-
rangeExclusive
Builds an enumeration of all values between the start and end bounds.- Parameters:
startInclusive
- the lower bound (inclusive)endExclusive
- the upper bound (exclusive)- Returns:
- the parameter
-
rangeExclusive
Builds an enumeration of values between the start and end bounds, incrementing by the given step size.- Parameters:
startInclusive
- the lower bound (inclusive)endExclusive
- the upper bound (exclusive)stepSize
- the step size- Returns:
- the parameter
-
range
Builds an enumeration of all values between the start and end bounds.- Parameters:
startInclusive
- the lower bound (inclusive)endInclusive
- the upper bound (inclusive)- Returns:
- the parameter
-
range
Builds an enumeration of values between the start and end bounds, incrementing by the given step size.- Parameters:
startInclusive
- the lower bound (inclusive)endInclusive
- the upper bound (inclusive)stepSize
- the step size- Returns:
- the parameter
-
random
Builds an enumeration of values sampled uniformly at random between the start and end bounds. UnlikesampledBetween(int, int)
, this produces a fixed enumeration of values.- Parameters:
startInclusive
- the lower bound (inclusive)endInclusive
- the upper bound (inclusive)count
- the number of values to enumerate- Returns:
- the parameter
-
sampledBetween
Builds a parameter that samples values uniformly at random between the start and end bounds.- Parameters:
startInclusive
- the lower bound (inclusive)endInclusive
- the upper bound (inclusive)- Returns:
- the parameter
-