org.jcamp.math.IArray1D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcamp-dx Show documentation
Show all versions of jcamp-dx Show documentation
The JCAMP-DX project is the reference implemention of the IUPAC JCAMP-DX spectroscopy data standard.
The newest version!
package org.jcamp.math;
/**
* real interval with discrete data points.
*
* @author Thomas Weber
*/
public interface IArray1D
extends IInterval1D {
/**
* number of data points in interval.
* @return int
*/
public int getLength();
/**
* discrete data point at position index
in interval.
* @param index int
*/
public double pointAt(int index);
/**
* scale by given amount.
* @param amount double
*/
public void scale(double amount);
/**
* convert data as double array.
*
* @return double[]
*/
public double[] toArray();
/**
* translate by given amount.
* @param amount double
*/
public void translate(double amount);
}