*
* @see simtools.data.ValueProvider#getDoubleValue(long)
*/
public double getDoubleValue(long index) throws DataException {
if (_startIndex < 0) {
throw new NoSuchIndex(index);
}
if (index < _startIndex) {
throw new NoSuchIndex(index);
}
if (index > _lastIndex) {
throw new NoSuchIndex(index);
}
if (type.equals("time")) {
return _t[(int) index % _size];
} else if (type.equals("time2")) {
return _t2[(int) index % _size];