Documentation of 'org.jplot2d.data.ArrayPair' Java class
ArrayPair
org.jplot2d.data

Class ArrayPair

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class ArrayPair
    extends java.lang.Object
    implements java.lang.Cloneable
    A pair of array (P/Q), which have the same length. Immutable.
    • Constructor Detail

      • ArrayPair

        public ArrayPair(java.lang.Object p,
                         java.lang.Object q)
        Create a ArrayPair instance with the given p/q array. The length of the p/q array must be same.
        Parameters:
        p -
        q -
      • ArrayPair

        public ArrayPair(java.lang.Object p,
                         java.lang.Object q,
                         int length)
        Create a ArrayPair instance with the given p/q array and length. The length of the p/q array must be same or longer than the given length.
        Parameters:
        p -
        q -
        length - the length to be used in this ArrayPair
    • Method Detail

      • size

        public int size()
      • getPComponentType

        public java.lang.Class<?> getPComponentType()
      • getQComponentType

        public java.lang.Class<?> getQComponentType()
      • getPArray

        public java.lang.Object getPArray()
      • getQArray

        public java.lang.Object getQArray()
      • getPDouble

        public double getPDouble(int idx)
      • getQDouble

        public double getQDouble(int idx)
      • append

        public ArrayPair append(java.lang.Object ap,
                                java.lang.Object aq,
                                int length)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.