public final class CheckFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static IllegalArgumentException |
checkAssignmentsVector(int N,
int K,
int[] assignments)
Checks if the given assignment vector does indeed only map to entries
between 0 and C, where C is the number of clusters/prototypes.
|
static IllegalArgumentException |
checkConvexCoefficients(int m,
double[] alpha)
Checks if the given vector has the correct size (N), is non-negative and sums up to 1.
|
static IllegalArgumentException |
checkConvexCoefficients(int m,
int K,
double[][] Alpha)
Checks if the given matrix contains proper convex coefficient vectors.
|
static IllegalArgumentException |
checkDissimilaritiesOfDatapointsToPrototypes(double[][] Dp)
Checks if the given matrix is not empty and consistent.
|
static IllegalArgumentException |
checkDissimilarityMatrix(double[][] D)
Checks if the given matrix is quadratic, symmetric and reflexive.
|
public static IllegalArgumentException checkDissimilarityMatrix(double[][] D)
D - supposedly a distance matrix.public static IllegalArgumentException checkConvexCoefficients(int m, int K, double[][] Alpha)
m - the expected length of the convex combination.K - the expected number of clusters/prototypes.Alpha - supposedly convex combinations.public static IllegalArgumentException checkConvexCoefficients(int m, double[] alpha)
m - the expected length of the convex combination.alpha - supposedly a convex combination.public static IllegalArgumentException checkAssignmentsVector(int N, int K, int[] assignments)
N - the expected length of the assignments vector.K - the expected number of clusters/prototypes.assignments - supposedly an assignments vector.public static IllegalArgumentException checkDissimilaritiesOfDatapointsToPrototypes(double[][] Dp)
Dp - a matrix of distances from data points to prototypes.Copyright (C) 2015-2017 Benjamin Paaßen, AG Machine Learning, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the GPL v. 3: https://gitlab.ub.uni-bielefeld.de/bpaassen/relational_neural_gas . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/