All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jcamp.math.IArray1D Maven / Gradle / Ivy

Go to download

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy