public class SmileUtils extends Object
Constructor and Description |
---|
SmileUtils() |
Modifier and Type | Method and Description |
---|---|
static GaussianRadialBasis |
learnGaussianRadialBasis(double[][] x,
double[][] centers)
Learns Gaussian RBF function and centers from data.
|
static GaussianRadialBasis[] |
learnGaussianRadialBasis(double[][] x,
double[][] centers,
double r)
Learns Gaussian RBF function and centers from data.
|
static GaussianRadialBasis[] |
learnGaussianRadialBasis(double[][] x,
double[][] centers,
int p)
Learns Gaussian RBF function and centers from data.
|
static <T> GaussianRadialBasis |
learnGaussianRadialBasis(T[] x,
T[] centers,
Metric<T> distance)
Learns Gaussian RBF function and centers from data.
|
static <T> GaussianRadialBasis[] |
learnGaussianRadialBasis(T[] x,
T[] centers,
Metric<T> distance,
double r)
Learns Gaussian RBF function and centers from data.
|
static <T> GaussianRadialBasis[] |
learnGaussianRadialBasis(T[] x,
T[] centers,
Metric<T> distance,
int p)
Learns Gaussian RBF function and centers from data.
|
static int[][] |
sort(Attribute[] attributes,
double[][] x)
Sorts each variable and returns the index of values in ascending order.
|
public static int[][] sort(Attribute[] attributes, double[][] x)
x
- a set of variables to be sorted. Each row is an instance. Each
column is a variable.public static 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 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 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> GaussianRadialBasis learnGaussianRadialBasis(T[] x, T[] centers, 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> GaussianRadialBasis[] learnGaussianRadialBasis(T[] x, T[] centers, 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> GaussianRadialBasis[] learnGaussianRadialBasis(T[] x, T[] centers, 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.Copyright © 2015. All rights reserved.