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.172 -- Release Build+ace768d5e4de8ccdda90a0d8c11832c746f370e1
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