public class SmileUtils
extends java.lang.Object
Constructor and Description |
---|
SmileUtils() |
Modifier and Type | Method and Description |
---|---|
static smile.math.rbf.GaussianRadialBasis |
learnGaussianRadialBasis(double[][] x,
double[][] centers)
Learns Gaussian RBF function and centers from data.
|
static smile.math.rbf.GaussianRadialBasis[] |
learnGaussianRadialBasis(double[][] x,
double[][] centers,
double r)
Learns Gaussian RBF function and centers from data.
|
static smile.math.rbf.GaussianRadialBasis[] |
learnGaussianRadialBasis(double[][] x,
double[][] centers,
int p)
Learns Gaussian RBF function and centers from data.
|
static <T> smile.math.rbf.GaussianRadialBasis |
learnGaussianRadialBasis(T[] x,
T[] centers,
smile.math.distance.Metric<T> distance)
Learns Gaussian RBF function and centers from data.
|
static <T> smile.math.rbf.GaussianRadialBasis[] |
learnGaussianRadialBasis(T[] x,
T[] centers,
smile.math.distance.Metric<T> distance,
double r)
Learns Gaussian RBF function and centers from data.
|
static <T> smile.math.rbf.GaussianRadialBasis[] |
learnGaussianRadialBasis(T[] x,
T[] centers,
smile.math.distance.Metric<T> distance,
int p)
Learns Gaussian RBF function and centers from data.
|
static int[][] |
sort(smile.data.Attribute[] attributes,
double[][] x)
Sorts each variable and returns the index of values in ascending order.
|
public static int[][] sort(smile.data.Attribute[] attributes, double[][] x)
x
- a set of variables to be sorted. Each row is an instance. Each
column is a variable.public static smile.math.rbf.GaussianRadialBasis learnGaussianRadialBasis(double[][] x, double[][] centers)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of k-means.public static smile.math.rbf.GaussianRadialBasis[] learnGaussianRadialBasis(double[][] x, double[][] centers, int p)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of k-means.p
- the number of nearest neighbors of centers to estimate the width
of Gaussian RBF functions.public static smile.math.rbf.GaussianRadialBasis[] learnGaussianRadialBasis(double[][] x, double[][] centers, double r)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of k-means.r
- the scaling parameter.public static <T> smile.math.rbf.GaussianRadialBasis learnGaussianRadialBasis(T[] x, T[] centers, smile.math.distance.Metric<T> distance)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of CLARANS.distance
- the distance functor.public static <T> smile.math.rbf.GaussianRadialBasis[] learnGaussianRadialBasis(T[] x, T[] centers, smile.math.distance.Metric<T> distance, int p)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of CLARANS.distance
- the distance functor.p
- the number of nearest neighbors of centers to estimate the width
of Gaussian RBF functions.public static <T> smile.math.rbf.GaussianRadialBasis[] learnGaussianRadialBasis(T[] x, T[] centers, smile.math.distance.Metric<T> distance, double r)
x
- the training dataset.centers
- an array to store centers on output. Its length is used as k of CLARANS.distance
- the distance functor.r
- the scaling parameter.