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.164 -- Release Build+a92a9bf42cb46f572890ee63295d6658a513d9b3
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