public class RegInstanceGenerator extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
RegInstanceGenerator.DataRuleCompliantListener |
| Constructor | Description |
|---|---|
RegInstanceGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
RegInstanceGenerator |
attr(Attribute attr) |
|
String |
generateCSV(int numOfLines) |
|
String |
generateCSV(int numOfLines,
String targetLabel,
double targetInitialValue) |
|
String |
generateCSV(int numOfLines,
String targetLabel,
double targetInitialValue,
double valueVolatility,
boolean withHeader,
boolean withId) |
|
String |
generateCsvRandomValues(double baseValue,
double volatility) |
|
void |
save(File file,
String encoding,
String string) |
|
void |
saveAsUTF8(File file,
String string) |
|
void |
saveAsUTF8WithBom(File file,
String encoding,
String string) |
|
void |
setDataRuleCompliantListener(RegInstanceGenerator.DataRuleCompliantListener listener) |
public RegInstanceGenerator attr(Attribute attr)
public String generateCSV(int numOfLines)
public String generateCSV(int numOfLines, String targetLabel, double targetInitialValue)
public String generateCSV(int numOfLines, String targetLabel, double targetInitialValue, double valueVolatility, boolean withHeader, boolean withId)
public void setDataRuleCompliantListener(RegInstanceGenerator.DataRuleCompliantListener listener)
public String generateCsvRandomValues(double baseValue, double volatility)
Copyright © 2019. All rights reserved.