Package elki.timeseries
Class OfflineChangePointDetectionAlgorithm.Instance
- java.lang.Object
-
- elki.timeseries.OfflineChangePointDetectionAlgorithm.Instance
-
- Enclosing class:
- OfflineChangePointDetectionAlgorithm
class OfflineChangePointDetectionAlgorithm.Instance extends java.lang.ObjectInstance for a single data set.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double[]bstrapTemporary storage for bootstrap testing.(package private) double[]columnRaw data column.(package private) intcolumnnrCurrent column number.(package private) DBIDArrayIteriterIterator to reference data positions.(package private) ChangePointsresultResult to output to.(package private) java.util.RandomrndRandom generator.(package private) double[]sumsCumulative sum.
-
Constructor Summary
Constructors Constructor Description Instance(java.util.Random rnd)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private doublebootstrapConfidence(int begin, int end, double thresh)Calculates the confidence for the most probable change point of the given timer series.private intmultipleChangepointsWithConfidence(int begin, int end)Performs multiple change point detection for a given time series.ChangePointsrun(Relation<DoubleVector> relation)Run the change point detection algorithm on a data relation.
-
-
-
Field Detail
-
column
double[] column
Raw data column.
-
sums
double[] sums
Cumulative sum.
-
bstrap
double[] bstrap
Temporary storage for bootstrap testing.
-
iter
DBIDArrayIter iter
Iterator to reference data positions.
-
result
ChangePoints result
Result to output to.
-
columnnr
int columnnr
Current column number.
-
rnd
java.util.Random rnd
Random generator.
-
-
Method Detail
-
run
public ChangePoints run(Relation<DoubleVector> relation)
Run the change point detection algorithm on a data relation.- Parameters:
relation- Data relation.- Returns:
- Change points
-
multipleChangepointsWithConfidence
private int multipleChangepointsWithConfidence(int begin, int end)Performs multiple change point detection for a given time series. This method uses a kind of divide and conquer approach- Parameters:
begin- Interval beginend- Interval end- Returns:
- Last change point position, or begin
-
bootstrapConfidence
private double bootstrapConfidence(int begin, int end, double thresh)Calculates the confidence for the most probable change point of the given timer series. Confidence is calculated with the help of bootstrapping.- Parameters:
begin- Subset beginend- Subset endthresh- Threshold- Returns:
- confidence for most probable change point
-
-