Click or drag to resize
Accord.NET (logo)

Linear Structure

Linear Kernel.

Namespace:  Accord.Statistics.Kernels
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.5.0
Syntax
[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>>
Request Example View Source

The Linear type exposes the following members.

Constructors
  NameDescription
Public methodLinear
Constructs a new Linear kernel.
Top
Properties
  NameDescription
Public propertyConstant
Gets or sets the kernel's intercept term. Default is 0.
Top
Methods
  NameDescription
Public methodAdd(Double, Double, Double)
Elementwise addition of a and b, storing in result.
Public methodAdd(SparseDouble, Double, Double)
Elementwise addition of a and b, storing in result.
Public methodClone
Creates a new object that is a copy of the current instance.
Public methodCompress(Double, SparseDouble, Double)
Compress a set of support vectors and weights into a single parameter vector.
Public methodCompress(Double, Double, Double)
Compress a set of support vectors and weights into a single parameter vector.
Public methodCreateVector(Double)
Creates an input vector from the given double values.
Public methodCreateVector(Int32)
Creates an input vector with the given dimensions.
Public methodDistance
Computes the squared distance in input space between two points given in feature space.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodFunction(Double)
Linear kernel function.
Public methodFunction(Double, SparseDouble)
The kernel function.
Public methodFunction(Double, Double)
Linear kernel function.
Public methodFunction(SparseDouble, SparseDouble)
The kernel function.
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetLength(Double)
Gets the number of parameters in the input vectors.
Public methodGetLength(SparseDouble)
Gets the number of parameters in the input vectors.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodProduct(Double, SparseDouble, Double)
Elementwise multiplication of scalar a and vector b, storing in result.
Public methodProduct(Double, Double, Double)
Elementwise multiplication of scalar a and vector b, storing in result.
Public methodProduct(Double, SparseDouble, Double)
Elementwise multiplication of vector a and vector b, accumulating in result.
Public methodProduct(Double, Double, Double)
Elementwise multiplication of vector a and vector b, accumulating in result.
Public methodReverseDistance
Computes the squared distance in input space between two points given in feature space.
Public methodToDouble(Double)
Converts the input vectors to a double-precision representation.
Public methodToDouble(SparseDouble)
Converts the input vectors to a double-precision representation.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodTransform(Double)
Projects an input point into feature space.
Public methodTransform(Double)
Projects a set of input points into feature space.
Public methodStatic memberTransform(Double, Double)
Projects an input point into feature space.
Top
Extension Methods
  NameDescription
Public Extension MethodDistance
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.)
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodToTOverloaded.
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.)
Public Extension MethodToTOverloaded.
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 Matrix.)
Top
See Also