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.160 -- Release Build+69269a1754081bcb38397d2d6a05132ae03c7054
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