public class ReducerOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReducerOptions.Builder |
Constructor and Description |
---|
ReducerOptions()
Creates a new ReducerOptions object.
|
Modifier and Type | Method and Description |
---|---|
static ReducerOptions.Builder |
builder()
Returns a new ReducerOptions builder.
|
String |
getFunction()
Returns the function for test case reduction.
|
double |
getResampleFactor()
Returns the
resample factor . |
int |
getSamples()
Returns the initial number of samples.
|
boolean |
isNewSeed()
Returns if test case reduction starts by ignoring any previous random seed.
|
void |
setFunction(String function)
Changes the function for test case reduction.
|
void |
setNewSeed(boolean newSeed)
Changes if test case reduction starts by ignoring any previous random seed.
|
void |
setResampleFactor(double resampleFactor)
Changes the resample factor.
|
void |
setSamples(int samples)
Changes the initial number of samples.
|
String |
toString() |
public void setFunction(String function)
public String getFunction()
public void setSamples(int samples)
public int getSamples()
public void setResampleFactor(double resampleFactor)
resampleFactor
determines the number of samples in the next round of reducing.
Depending on the resampleFactor
, the next round may use more or fewer samples.
If the previous round called for N
samples and produced a reduction, then the number of samples for the
next round will be N * ( 1 + resampleFactor)
. To increase sample count with each round, define
resampleFactor
> 0. To decrease sample count with each round, define -1 <
resampleFactor
< 0.public double getResampleFactor()
resample factor
.public void setNewSeed(boolean newSeed)
public boolean isNewSeed()
public static ReducerOptions.Builder builder()
Copyright © 2024 The Cornutum Project. All rights reserved.