Click or drag to resize
Accord.NET (logo)

Classes Class

Methods for operating with categorical data.
Inheritance Hierarchy
SystemObject
  Accord.StatisticsClasses

Namespace:  Accord.Statistics
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static class Classes
Request Example View Source

The Classes type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDecide(Double)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberDecide(Double)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberDecide(Double)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberDecide(Int32)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberDecide(Int32)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberDecide(Int32)
Hyperplane decision function. Return true if distance is higher than zero, and false otherwise.
Public methodStatic memberExpand(Int32, Int32, Int32)
Extends a grouped data into a full observation matrix.
Public methodStatic memberExpand(Int32, Int32, Int32, Int32)
Expands a grouped data into a full observation matrix.
Public methodStatic memberGetRatio(Int32, Int32)
Calculates the prevalence of a class for each variable.
Public methodStatic memberGetRatio(Boolean, Int32, Int32)
Gets the percentage of positive samples in a set of class labels.
Public methodStatic memberGetRatio(Int32, Int32, Int32)
Gets the percentage of positive samples in a set of class labels.
Public methodStatic memberGetRatio(Int32, Int32, Int32)
Calculates the prevalence of a class.
Public methodStatic memberIsBinary
Determines whether the class labels contains only (-1 and +1) or (0 and +1).
Public methodStatic memberIsMinusOnePlusOne
Determines whether the class labels contains only -1 and +1.
Public methodStatic memberIsMulticlass
Determines whether the class labels contains one true value per sample.
Public methodStatic memberIsMultilabel
Determines whether the class labels contains one true value per sample.
Public methodStatic memberIsZeroOne
Determines whether the class labels contains only zero and ones.
Public methodStatic memberCode exampleRandom(Int32, Double)
Returns a random group assignment for a sample into two mutually exclusive groups.
Public methodStatic memberCode exampleRandom(Int32, Double)
Returns a random group assignment for a sample.
Public methodStatic memberCode exampleRandom(Int32, Int32)
Returns a random group assignment for a sample.
Public methodStatic memberCode exampleRandom(Int32, Double)
Returns a random group assignment for a sample, making sure different class labels are distributed evenly among the groups.
Public methodStatic memberCode exampleRandom(Int32, Int32)
Returns a random group assignment for a sample, making sure different class labels are distributed evenly among the groups.
Public methodStatic memberCode exampleRandom(Int32, Int32, Int32)
Returns a random group assignment for a sample, making sure different class labels are distributed evenly among the groups.
Public methodStatic memberCode exampleSeparateT(T, Int32)
Divides values into groups given a vector containing the group labels for every value.
Public methodStatic memberCode exampleSeparateT(T, Int32, Int32)
Divides values into groups given a vector containing the group labels for every value.
Public methodStatic memberSummarize
Public methodStatic memberToMinusOnePlusOne(Boolean)
Converts a boolean variable into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Boolean)
Converts boolean variables into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Boolean)
Converts boolean variables into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Double)
Converts a boolean variable into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Double)
Converts boolean variables into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Int32)
Converts a boolean variable into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOne(Int32)
Converts boolean variables into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMinusOnePlusOneT(Boolean)
Converts boolean variables into a -1 or +1 representation (-1 is false, +1 is true).
Public methodStatic memberToMulticlass(Double)
Converts double variables into class labels, starting at zero.
Public methodStatic memberToMulticlass(Int32)
Converts double variables into class labels, starting at zero.
Public methodStatic memberToMulticlass(Double, Int32)
Converts double variables into class labels, starting at zero.
Public methodStatic memberToMulticlass(Int32, Int32)
Converts double variables into class labels, starting at zero.
Public methodStatic memberToZeroOne(Boolean)
Converts a boolean variable into a 0-or-1 representation (0 is false, 1 is true).
Public methodStatic memberToZeroOne(Boolean)
Converts boolean variables into a 0-or-1 representation (0 is false, 1 is true).
Public methodStatic memberToZeroOne(Double)
Converts a boolean variable into a 0-or-1 representation (0 is false, 1 is true).
Public methodStatic memberToZeroOne(Double)
Converts boolean variables into a 0-or-1 representation (0 is false, 1 is true).
Public methodStatic memberToZeroOne(Int32)
Converts a boolean variable into a 0-or-1 representation (0 is false, 1 is true).
Public methodStatic memberToZeroOne(Int32)
Converts boolean variables into a 0-or-1 representation (0 is false, 1 is true).
Top
See Also