public class LinearVectorKernel extends Object implements VectorKernel
| Constructor and Description |
|---|
LinearVectorKernel() |
| Modifier and Type | Method and Description |
|---|---|
Double |
apply(org.openimaj.util.pair.IndependentPair<double[],double[]> in) |
static double[] |
getDirection(List<double[]> supports,
List<Double> weights) |
static no.uib.cipr.matrix.Vector[] |
getPlaneDirections(List<double[]> supports,
List<Double> weights) |
static double[] |
getPlanePoint(List<double[]> supports,
List<Double> weights,
double bias,
double... setValues)
On the plane
|
public LinearVectorKernel()
public Double apply(org.openimaj.util.pair.IndependentPair<double[],double[]> in)
apply in interface org.openimaj.util.function.Function<org.openimaj.util.pair.IndependentPair<double[],double[]>,Double>public static double[] getPlanePoint(List<double[]> supports, List<Double> weights, double bias, double... setValues)
supports - weights - bias - setValues - the dimentions of the point set to 0public static no.uib.cipr.matrix.Vector[] getPlaneDirections(List<double[]> supports, List<Double> weights)
supports - weights - public static double[] getDirection(List<double[]> supports, List<Double> weights)