|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfrog.KmeansParameters
public class KmeansParameters
KmeansParameters is a simple record class for easier passing of Kmeans parameters. It contains the number of means, the k-means algorithm training threshold, and a boolean for whether to use the ++ variant.
| Constructor Summary | |
|---|---|
KmeansParameters()
Constructs a set of Kmeans parameters with default settings. |
|
KmeansParameters(int nm,
double t,
boolean pp)
Constructs a set of Kmeans parameters with a given number of means, training threshold, and k-means++ boolean (++ is used on true, not used on false) |
|
| Method Summary | |
|---|---|
int |
getNumMeans()
Accessor for the number of means |
double |
getThreshold()
Accessor for the training threshold. |
boolean |
getUsingPlusPlus()
Accessor for the k-means++ boolean |
void |
setNumMeans(int nm)
Sets the number of means. |
void |
setThreshold(double t)
Sets the training threshold. |
void |
setUsingPlusPlus(boolean pp)
Sets the k-means++ boolean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KmeansParameters()
public KmeansParameters(int nm,
double t,
boolean pp)
nm - the number of meanst - the training thresholdpp - whether to use k-means++ (true) or not (false)| Method Detail |
|---|
public int getNumMeans()
public void setNumMeans(int nm)
nm - the value for setting the number of meanspublic double getThreshold()
public void setThreshold(double t)
t - the value for setting the training thresholdpublic boolean getUsingPlusPlus()
public void setUsingPlusPlus(boolean pp)
pp - the boolean for setting the k-means++ boolean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||