Nevron .NET Vision
Nevron.Chart Namespace / NDataSeriesDouble Class / Evaluate Method
This argument supports the following string constants:
MIN returns the minimum value contained in the subset
MAX returns the maximum value contained in the subset
AVE returns the average value of the subset
SUM returns the sum of all values contained in the subset
ABSSUM returns the absolute sum of all values contained in the subset
FIRST returns the data series value at the first index in the subset
LAST returns the data series value at the last index in the subset
subset in the data series on which to perform the evaluation
Example


In This Topic
    Evaluate Method (NDataSeriesDouble)
    In This Topic
    This method evaluates a single argument function on the specified data series subset.
    Syntax
    'Declaration
     
    
    Public Function Evaluate( _
       ByVal singleArgumentFormula As System.String, _
       ByVal subset As NDataSeriesSubset _
    ) As System.Double
    'Usage
     
    
    Dim instance As NDataSeriesDouble
    Dim singleArgumentFormula As System.String
    Dim subset As NDataSeriesSubset
    Dim value As System.Double
     
    value = instance.Evaluate(singleArgumentFormula, subset)
    public System.double Evaluate( 
       System.string singleArgumentFormula,
       NDataSeriesSubset subset
    )

    Parameters

    singleArgumentFormula
    This argument supports the following string constants:
    MIN returns the minimum value contained in the subset
    MAX returns the maximum value contained in the subset
    AVE returns the average value of the subset
    SUM returns the sum of all values contained in the subset
    ABSSUM returns the absolute sum of all values contained in the subset
    FIRST returns the data series value at the first index in the subset
    LAST returns the data series value at the last index in the subset
    subset
    subset in the data series on which to perform the evaluation

    Return Value

    the result of the evaluation
    Example
    The following code calculates the sum of the values contained in a data series.
    Dim subset As NDataSeriesSubset =  New NDataSeriesSubset() 
    subset.AddRange(0, dataseries.Count - 1)
    Dim sum As Double =  dataseries.Evaluate("SUM",subset)
    NDataSeriesSubset subset = new NDataSeriesSubset();
    subset.AddRange(0, dataseries.Count - 1);
    double sum = dataseries.Evaluate("SUM", subset);
    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