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

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

package org.jcamp.math;

/**
 * interval of width 0.
 * @author Thomas Weber
 */
public class EmptyArray1D implements IArray1D {
    /**
     * EmptyInterval1D constructor comment.
     */
    public EmptyArray1D() {
        super();
    }
    /**
     * getLength method comment.
     */
    public int getLength() {
        return 0;
    }
    /**
     * getRange method comment.
     */
    public Range.Double getRange() {
        return new Range1D.Double();
    }
    /**
     * gets interval range.
     */
    public Range1D.Double getRange1D() {
        return new Range1D.Double();
    }
    /**
     * pointAt method comment.
     */
    public double pointAt(int index) {
        return Double.NaN;
    }
    /**
     * translate method comment.
     */
    public void scale(double amount) {
    }
    /**
     * toArray method comment.
     */
    public double[] toArray() {
        return new double[0];
    }
    /**
     * translate method comment.
     */
    public void translate(double amount) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy