| Package | Description |
|---|---|
| com.aliasi.classify |
Classes for classifying data and evaluation.
|
| com.aliasi.cluster |
Classes for clustering data and evaluation.
|
| com.aliasi.matrix |
Classes for matrices and vectors.
|
| com.aliasi.spell |
Classes for spelling correction and edit distance.
|
| Constructor and Description |
|---|
KnnClassifier(FeatureExtractor<? super E> featureExtractor,
int k,
Distance<Vector> distance)
Construct a k-nearest-neighbor classifier based on the
specified feature extractor, specified maximum number of
neighbors, and specified distance function.
|
| Modifier and Type | Method and Description |
|---|---|
Distance<? super E> |
AbstractHierarchicalClusterer.distance()
Returns the distance function for this hierarchical clusterer.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Dendrogram.copheneticCorrelation(Distance<? super E> distance)
Returns the Pearson correlation coefficient between the
inter-object distances and the cophenetic distances defined by
this dendrogram.
|
static <E> double |
ClusterScore.scatter(Set<? extends E> cluster,
Distance<? super E> distance)
Returns the scatter for the specified cluster based on the
specified distance.
|
double |
Dendrogram.withinClusterScatter(int numClusters,
Distance<? super E> distance)
Returns the within-cluster scatter relative to the specified
distance of the clustering determined by splitting this
dendrogram into the specified number of clusters.
|
static <E> double |
ClusterScore.withinClusterScatter(Set<? extends Set<? extends E>> clustering,
Distance<? super E> distance)
Returns the within-cluster scatter measure for the specified
clustering with respect to the specified distance.
|
| Constructor and Description |
|---|
AbstractHierarchicalClusterer(double maxDistance,
Distance<? super E> distance)
Construct an abstract hierarchical clusterer with the specified
maximum distance.
|
CompleteLinkClusterer(Distance<? super E> distance)
Construct a complete link clusterer with no distance bound.
|
CompleteLinkClusterer(double maxDistance,
Distance<? super E> distance)
Construct a complete link clusterer with the specified distance
bound.
|
SingleLinkClusterer(Distance<? super E> distance)
Construct a single-link clusterer with no distance bound.
|
SingleLinkClusterer(double maxDistance,
Distance<? super E> distance)
Construct a single-link clusterer with the specified distance
bound.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EuclideanDistance
The
EuclideanDistance class implements standard
Euclidean distance between vectors. |
class |
MinkowskiDistance
The
MinkowskiDistance class implements Minkowski
distance of a fixed order between vectors. |
class |
TaxicabDistance
The
TaxicabDistance class implements standard taxicab,
or Manhattan distance between vectors. |
| Modifier and Type | Class and Description |
|---|---|
class |
EditDistance
The
EditDistance class implements the standard notion
of edit distance, with or without transposition. |
class |
FixedWeightEditDistance
A
FixedWeightEditDistance sets constant weights for
the edit operations for weighted edit distance. |
class |
JaccardDistance
The
JaccardDistance class implements a notion of
distance based on token overlap. |
class |
JaroWinklerDistance
The
JaroWinklerDistance class implements the original
Jaro string comparison as well as Winkler's modifications. |
class |
TfIdfDistance
The
TfIdfDistance class provides a string distance
based on term frequency (TF) and inverse document frequency (IDF). |
class |
TokenizedDistance
The
TokenizedDistance class provides an underlying
implementation of string distance based on comparing sets of
tokens. |
class |
WeightedEditDistance
The
WeightedEditDistance class implements both the
proximity and distance interfaces based on the negative proximity
weights assigned to independent atomic edit operations. |
| Modifier and Type | Field and Description |
|---|---|
static Distance<CharSequence> |
EditDistance.NON_TRANSPOSING
Edit distance disallowing transposition.
|
static Distance<CharSequence> |
EditDistance.TRANSPOSING
Edit distance allowing transposition.
|
Copyright © 2019 Alias-i, Inc.. All rights reserved.