public class KMeansSettings extends java.lang.Object implements DiscretizationSettings
APIUtils.discretize(DiscretizationSettings, double[], double[])| Constructor and Description |
|---|
KMeansSettings(int intervalCount,
boolean logUsed,
boolean zeroIsolated)
Create settings for the K-Means discretization algorithm providing the number of intervals we want to obtain.
|
| Modifier and Type | Method and Description |
|---|---|
APIUtils.DISCRETIZATION |
getDiscretization()
Return a
DISCRETIZATION indicating the discretization algorithm to use |
int |
getIntervalCount() |
boolean |
isLogUsed() |
boolean |
isZeroIsolated() |
public KMeansSettings(int intervalCount,
boolean logUsed,
boolean zeroIsolated)
logUsed.
When there is a lot of zeros in the data, it is possible to consider them as a unique zero, avoiding discretization issues and focusing discretization process over the non-zero values.intervalCount - the number of intervalslogUsed - indicates if the data have to be converted into log before discretizationzeroIsolated - indicates if we want to consider all zeros as a unique valuepublic APIUtils.DISCRETIZATION getDiscretization()
DiscretizationSettingsDISCRETIZATION indicating the discretization algorithm to usegetDiscretization in interface DiscretizationSettingspublic int getIntervalCount()
public boolean isLogUsed()
public boolean isZeroIsolated()