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.173 -- Release Build+98db269125537782905bfaaa87acec3cc1ea821a
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