Gemstone Timeseries Library
Show/Hide TOC

# StatisticValueStateCacheGetDifference Method

Gets the statistical difference between current and previous statistic value.

## Definition

Namespace: Gemstone.Timeseries.Statistics
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.159 -- Release Build+5e229f6c17e56a080df8050499a7be13fe2cb600
C#
View Source Request Example

    public double GetDifference(
    	Object source,
    	double statistic,
    	string name
    )

VB
View Source Request Example

    Public Function GetDifference (
    	source As Object,
    	statistic As Double,
    	name As String
    ) As Double

C++
View Source Request Example

    public:
    double GetDifference(
    	Object^ source,
    	double statistic,
    	String^ name
    )

JavaScript
View Source Request Example

    function GetDifference(source, statistic, name);

#### Parameters

source Object
  Source Device.
statistic Double
  Current statistic value.
name String
  Name of statistic calculation.

#### Return Value

Double
Difference from last cached statistic value.

## See Also

#### Reference

StatisticValueStateCache Class
Gemstone.Timeseries.Statistics Namespace