Skip to content

DataBlock

Jean Palate edited this page Feb 3, 2015 · 1 revision

Overview

A ec.tstoolkit.data.DataBlock is simply a set of data equally spaced in an array of doubles. The data are identifed by the underlying array (x_), the starting and the ending position (beg_, end_) and by the increment (inc_) between two successive data.

final double[] x_;
final int inc_;
int beg_, end_;

It should be noted that:

  • The data at the ending position doesn't belong to the datablock.
  • We must have that end_ = beg_ + inc_ * n, for some integer n.
  • The increment may be positive or negative.

That structure plays a critical role in many parts of the low-level classes of jdemetra-core, especially in the handling of matrices and of time series.

Clone this wiki locally