Disaggregate
Disaggregate Smart Meter data

Signature::Spike Struct Reference

Recording the value and location of a Spike e.g. a Spike in the gradient of a signature. More...

#include <Signature.h>

Collaboration diagram for Signature::Spike:

List of all members.

Static Public Member Functions

static const bool compareAbsValueDesc (const Spike first, const Spike second)
 Comparison function. Useful for sorting lists of spikes into descending order of absolute magnitude.
static const bool compareIndexAsc (const Spike first, const Spike second)

Public Attributes

size_t index
 Location to find this Spike.
size_t n
 Length of spike in samples.
double delta
 Value of Spike at this location.

Detailed Description

Recording the value and location of a Spike e.g. a Spike in the gradient of a signature.

Definition at line 33 of file Signature.h.


Member Function Documentation

static const bool Signature::Spike::compareAbsValueDesc ( const Spike  first,
const Spike  second 
) [inline, static]

Comparison function. Useful for sorting lists of spikes into descending order of absolute magnitude.

Definition at line 42 of file Signature.h.

References delta.

Referenced by Signature::getDeltaSpikes().

Here is the caller graph for this function:

static const bool Signature::Spike::compareIndexAsc ( const Spike  first,
const Spike  second 
) [inline, static]

Definition at line 47 of file Signature.h.

References index.

Referenced by Device::getSalientSpikes(), PowerStateGraph::update(), and PowerStateGraph::updateEdges().

Here is the caller graph for this function:


Member Data Documentation

Value of Spike at this location.

Definition at line 36 of file Signature.h.

Referenced by compareAbsValueDesc(), and Signature::getMergedSpikes().

Location to find this Spike.

Definition at line 34 of file Signature.h.

Referenced by compareIndexAsc(), and Signature::getMergedSpikes().

Length of spike in samples.

Definition at line 35 of file Signature.h.

Referenced by Signature::getMergedSpikes().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends