Nevron .NET Vision
Nevron.Diagram.Maps Namespace / NDataGroupingOptimal Class / Classify Method
The data points to classify sorted in ascending order.
The number of classes desired.


In This Topic
    Classify Method (NDataGroupingOptimal)
    In This Topic
    Creates the specified number of data ranges (classes) for the given set of data points (distinct values).
    Syntax
    'Declaration
     
    
    Public Overrides Function Classify( _
       ByVal data As System.Collections.Generic.IList(Of Double), _
       ByVal classCount As System.Integer _
    ) As System.Double()
    'Usage
     
    
    Dim instance As NDataGroupingOptimal
    Dim data As System.Collections.Generic.IList(Of Double)
    Dim classCount As System.Integer
    Dim value() As System.Double
     
    value = instance.Classify(data, classCount)
    public override System.double[] Classify( 
       System.Collections.Generic.IList<double> data,
       System.int classCount
    )

    Parameters

    data
    The data points to classify sorted in ascending order.
    classCount
    The number of classes desired.

    Return Value

    An array of doubles representing the data ranges. For example an array {0, 12, 32.1} means that there are 3 data ranges: [0, 12), [12, 32.1) and [32.1, Infinity).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also