org.jplot2d.data
Class ArrayPair
- java.lang.Object
-
- org.jplot2d.data.ArrayPair
-
- All Implemented Interfaces:
- java.lang.Cloneable
public class ArrayPair extends java.lang.Object implements java.lang.CloneableA pair of array (P/Q), which have the same length. Immutable.
-
-
Constructor Summary
Constructors Constructor and Description ArrayPair(java.lang.Object p, java.lang.Object q)Create a ArrayPair instance with the given p/q array.ArrayPair(java.lang.Object p, java.lang.Object q, int length)Create a ArrayPair instance with the given p/q array and length.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ArrayPairappend(ArrayPair arrayPair)ArrayPairappend(java.lang.Object ap, java.lang.Object aq, int length)ArrayPaircopy()java.lang.ObjectgetPArray()java.lang.Class<?>getPComponentType()doublegetPDouble(int idx)java.lang.ObjectgetQArray()java.lang.Class<?>getQComponentType()doublegetQDouble(int idx)intsize()
-
-
-
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)
-
copy
public ArrayPair copy()
-
-
DMelt 3.0 © DataMelt by jWork.ORG