is an option in functions such as ClusterClassify that specifies the criterion to use to select a method.
CriterionFunction
is an option in functions such as ClusterClassify that specifies the criterion to use to select a method.
Details
- In the case of ClusterClassify, possible settings for CriterionFunction include:
-
"StandardDeviation" root-mean-square standard deviation "RSquared" R-squared "Dunn" Dunn index "CalinskiHarabasz" Calinski–Harabasz index "DaviesBouldin" Davies–Bouldin index "Silhouette" Silhouette score Automatic internal index
Examples
Basic Examples (1)
Define two nested point clusters:
data = {...};
ListPlot[data]Construct a classifier function using the Automatic CriterionFunction:
c = ClusterClassify[data, 2]Construct a classifier function using the "RSquared" index as CriterionFunction:
d = ClusterClassify[data, 2, CriterionFunction -> "RSquared"]Compare the two clustering of the data:
{ListPlot[GatherBy[data, c]], ListPlot[GatherBy[data, d]]}See Also
Related Guides
Text
Wolfram Research (2016), CriterionFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CriterionFunction.html (updated 2020).
CMS
Wolfram Language. 2016. "CriterionFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/CriterionFunction.html.
APA
Wolfram Language. (2016). CriterionFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CriterionFunction.html
BibTeX
@misc{reference.wolfram_2026_criterionfunction, author="Wolfram Research", title="{CriterionFunction}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/CriterionFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_criterionfunction, organization={Wolfram Research}, title={CriterionFunction}, year={2020}, url={https://reference.wolfram.com/language/ref/CriterionFunction.html}, note=[Accessed: 13-June-2026]}