public class Sample
extends java.lang.Object
Class that represents a sample of data
Constructor and Description |
---|
Sample(int patterns)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
GetAdaSample(Ensemble ensemble,
double[][] data,
int n,
int net)
Returns an Ada sample
|
void |
GetArcingSample(Ensemble ensemble,
double[][] data,
int n,
int nets)
Returns an Arcing sample
|
void |
GetBaggingSample()
Return a bagging sample
|
void |
GetEqualSample()
Uniform sample
|
int |
GetPattern()
Return a random pattern
|
public Sample(int patterns)
Constructor
patterns
- No of patternspublic void GetEqualSample()
Uniform sample
public void GetBaggingSample()
Return a bagging sample
public int GetPattern()
Return a random pattern
public void GetArcingSample(Ensemble ensemble, double[][] data, int n, int nets)
Returns an Arcing sample
ensemble
- Ensembledata
- Input datan
- data matrix order (number of of rows and colums)nets
- Number of networkspublic void GetAdaSample(Ensemble ensemble, double[][] data, int n, int net)
Returns an Ada sample
ensemble
- Ensembledata
- Input datan
- data matrix order (number of rows and columns)net
- Number of networks