Linear Structure |
Namespace: Accord.Statistics.Kernels
[SerializableAttribute] public struct Linear : IKernel, IKernel<double[]>, IDistance, IDistance<double[]>, IDistance<double[], double[]>, ILinear, ILinear<double[]>, ICloneable, IReverseDistance, ITransform, ITransform<double[]>, IKernel<Sparse<double>>, ILinear<Sparse<double>>, IDistance<Sparse<double>>, IDistance<Sparse<double>, Sparse<double>>
The Linear type exposes the following members.
Name | Description | |
---|---|---|
Add(Double, Double, Double) |
Elementwise addition of a and b, storing in result.
| |
Add(SparseDouble, Double, Double) |
Elementwise addition of a and b, storing in result.
| |
Clone |
Creates a new object that is a copy of the current instance.
| |
Compress(Double, SparseDouble, Double) |
Compress a set of support vectors and weights into a single
parameter vector.
| |
Compress(Double, Double, Double) |
Compress a set of support vectors and weights into a single
parameter vector.
| |
CreateVector(Double) |
Creates an input vector from the given double values.
| |
CreateVector(Int32) |
Creates an input vector with the given dimensions.
| |
Distance(Double, Double) |
Computes the squared distance in input space
between two points given in feature space.
| |
Distance(SparseDouble, SparseDouble) |
Computes the squared distance in input space
between two points given in feature space.
| |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
Function(Double) |
Linear kernel function.
| |
Function(Double, SparseDouble) |
The kernel function.
| |
Function(Double, Double) |
Linear kernel function.
| |
Function(SparseDouble, SparseDouble) |
The kernel function.
| |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetLength(Double) |
Gets the number of parameters in the input vectors.
| |
GetLength(SparseDouble) |
Gets the number of parameters in the input vectors.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Product(Double, SparseDouble, Double) |
Elementwise multiplication of scalar a and vector b, storing in result.
| |
Product(Double, Double, Double) |
Elementwise multiplication of scalar a and vector b, storing in result.
| |
Product(Double, SparseDouble, Double) |
Elementwise multiplication of vector a and vector b, accumulating in result.
| |
Product(Double, Double, Double) |
Elementwise multiplication of vector a and vector b, accumulating in result.
| |
ReverseDistance |
Computes the squared distance in input space
between two points given in feature space.
| |
ToDouble(Double) |
Converts the input vectors to a double-precision representation.
| |
ToDouble(SparseDouble) |
Converts the input vectors to a double-precision representation.
| |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) | |
Transform(Double) |
Projects an input point into feature space.
| |
Transform(Double) |
Projects a set of input points into feature space.
| |
Transform(Double, Double) |
Projects an input point into feature space.
|
Name | Description | |
---|---|---|
Distance |
Computes the kernel distance for a kernel function even if it doesn't
implement the IDistance interface. Can be used to check
the proper implementation of the distance function.
(Defined by Tools.) | |
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |