Michael Thomas Flanagan's Java Scientific Library

Stat Class:     Methods Inherited from ArrayMaths

     

Main Page of Michael Thomas Flanagan's Java Scientific Library                                                                                                                             PERMISSION TO COPY

This page lists only the details of those methods in the Stat class that are inherited from the ArrayMaths class.

See Stat class main page for listing and details of primary Stat methods.

Instance methods inherited from (or overriding) the superclass ArrayMaths operating on the stored array in the Stat instance:
Arrays may be entered, into most static methods and into an instance of Stat, as a range of data types including BigDecimal[] and BigInteger[][. If the array is entered as BigDecimal[] or BigInteger[] and if the called method allows arbitrary precision arithmetic the result will be returned as BigDecimal[] or BigDecimal, if it does not the result will be returned as double[] or double. A list of all the methods, in this library, using arbitrary precision arithmetic may be found on ArbitraryPrecision.

import statement:       import flanagan.analysis.Stat;

SUMMARY OF METHODS

See class ArrayMaths for recasting arrays if the array argument below is not of the type that you require.

Instance methods inherited or overridden from the superclass ArrayMaths

Array Type return array type public String arrayType()
return original array types public String originalArrayType()
Array Length return length of the array public int length()
Deep Copy return a deep copy public Stat copy()
'Possible loss of precision' messages suppress messages for an instance public void suppressMessages()
restore messages for an instance public void restoreMessages()
suppress messages for an application public static void suppressMessagesTotal()
restore messages for an application public static void restoreMessagesTotal()
Return array as entered or as converted type as double[] public double[] array()
public double[] array_as_double()
as Vector<Object> public Vector<Object> array_as_Vector()
as ArrayList<Object> public ArrayList<Object> array_as_ArrayList()
as a Object[] public Object[] array_as_Object()
as a Row Matrix public Matrix array_as_Matrix_rowMatrix()
as a Column Matrix public Matrix array_as_Matrix_columnMatrix()
as Double[] public Double[] array_as_Double()
as float[] public float[] array_as_float()
as Float[] public Float[] array_as_Float()
as long[] public long[] array_as_long()
as Long[] public long[] array_as_Long()
as int[] public int[] array_as_int()
as Integer[] public Integer[] array_as_Integer()
as short[] public short[] array_as_short()
as Short[] public Short[] array_as_Short()
as byte[] public byte[] array_as_byte()
as Byte[] public Byte[] array_as_Byte()
as BigDecimal[] public BigDecimal[] array_as_BigDecimal()
as BigInteger[] public BigInteger[] array_as_BigInteger()
as char[] public char[] array_as_char()
as Character[] public Character[] array_as_Character()
as String[] public String[] array_as_String()
as Complex[] public Complex[] array_as_Complex()
as the moduli of Complex[] public double[] array_as_modulus_of_Complex()
as the real parts of Complex[] public double[] array_as_real_part_of_Complex()
as the imaginary parts of Complex[] public double[] array_as_imaginary_part_of_Complex()
as a Complex Row Matrix public ComplexMatrix array_as_Complex_rowMatrix()
as a Complex Column Matrix public ComplexMatrix array_as_Complex_columnMatrix()
as Phasor[] public Phasor[] array_as_Phasor()
as the magnitudes of Phasor[] public double[] array_as_magnitude_of_Phasor()
as the phase, in degrees, of Phasor[] public double[] array_as_degrees_phase_of_Phasor()
as the phase, in radians, of Phasor[] public double[] array_as_radians_phase_of_Phasor()
as a Phasor Row Matrix public PhasorMatrix array_as_Phasor_rowMatrix()
as a Phasor Column Matrix public PhasorMatrix array_as_Phasor_columnMatrix()
Return sub-array as double[] public double[] subarray(int start, int end)
public double[] subarray_as_double(int start, int end)
as Vector<Object> public Vector<Object> subarray_as_Vector(int start, int end)
as subarrayList<Object> public subarrayList<Object> subarray_as_subarrayList(int start, int end)
as a Object[] public Object[] subarray_as_Object(int start, int end)
as a Row Matrix public Matrix subarray_as_Matrix_rowMatrix(int start, int end)
as a Column Matrix public Matrix subarray_as_Matrix_columnMatrix(int start, int end)
as Double[] public Double[] subarray_as_Double(int start, int end)
as float[] public float[] subarray_as_float(int start, int end)
as Float[] public Float[] subarray_as_Float(int start, int end)
as long[] public long[] subarray_as_long(int start, int end)
as Long[] public long[] subarray_as_Long(int start, int end)
as int[] public int[] subarray_as_int(int start, int end)
as Integer[] public Integer[] subarray_as_Integer(int start, int end)
as short[] public short[] subarray_as_short(int start, int end)
as Short[] public Short[] subarray_as_Short(int start, int end)
as byte[] public byte[] subarray_as_byte(int start, int end)
as Byte[] public Byte[] subarray_as_Byte(int start, int end)
as BigDecimal[] public BigDecimal[] subarray_as_BigDecimal(int start, int end)
as BigInteger[] public BigInteger[] subarray_as_BigInteger(int start, int end)
as char[] public char[] subarray_as_char(int start, int end)
as Character[] public Character[] subarray_as_Character(int start, int end)
as String[] public String[] subarray_as_String(int start, int end)
as Complex[] public Complex[] subarray_as_Complex(int start, int end)
as the moduli of Complex[] public double[] subarray_as_modulus_of_Complex(int start, int end)
as the real parts of Complex[] public double[] subarray_as_real_part_of_Complex(int start, int end)
as the imaginary parts of Complex[] public double[] subarray_as_imaginary_part_of_Complex(int start, int end)
as a Complex Row Matrix public ComplexMatrix subarray_as_Complex_rowMatrix(int start, int end)
as a Complex Column Matrix public ComplexMatrix subarray_as_Complex_columnMatrix(int start, int end)
as Phasor[] public Phasor[] subarray_as_Phasor(int start, int end)
as the magnitudes of Phasor[] public double[] subarray_as_magnitude_of_Phasor(int start, int end)
as the phase, in degrees, of Phasor[] public double[] subarray_as_degrees_phase_of_Phasor(int start, int end)
as the phase, in radians, of Phasor[] public double[] subarray_as_radians_phase_of_Phasor(int start, int end)
as a Phasor Row Matrix public PhasorMatrix subarray_as_Phasor_rowMatrix(int start, int end)
as a Phasor Column Matrix public PhasorMatrix subarray_as_Phasor_columnMatrix(int start, int end)
Return array maximum as double public double maximum()
public double maximum_as_double()
as Double public Double maximum_as_Double()
as float public float maximum_as_float()
as Float public Float maximum_as_Float()
as long public long maximum_as_long()
as Long public Long maximum_as_Long()
as int public int maximum_as_int()
as Integer public Integer maximum_as_Integer()
as short public short maximum_as_short()
as Short public Short maximum_as_Short()
as byte public byte maximum_as_byte()
as Byte public Byte maximum_as_Byte()
as BigDecimal public BigDecimal maximum_as_BigDecimal()
as BigInteger public BigInteger maximum_as_BigInteger()
as char public char maximum_as_char()
as Character public Character maximum_as_Characterr()
Return index of array maximum   public int maximumIndex()
Return array minimum as double public double minimum()
public double minimum_as_double()
as Double public Double minimum_as_Double()
as float public float minimum_as_float()
as Float public Float minimum_as_Float()
as long public long minimum_as_long()
as Long public Long minimum_as_Long()
as int public int minimum_as_int()
as Integer public Integer minimum_as_Integer()
as short public short minimum_as_short()
as Short public Short minimum_as_Short()
as byte public byte minimum_as_byte()
as Byte public Byte minimum_as_Byte()
as BigDecimal public BigDecimal minimum_as_BigDecimal()
as BigInteger public BigInteger minimum_as_BigInteger()
as char public char minimum_as_char()
as Character public Character minimum_as_Characterr()
Return index of array minimum   public int minimumIndex()
Addition of a constant addition of a double public ArrayMaths plus(double constant)
addition of a Double public ArrayMaths plus(Double constant)
addition of a float public ArrayMaths plus(float constant)
addition of a Float public ArrayMaths plus(Float constant)
addition of a long public ArrayMaths plus(long constant)
addition of a Long public ArrayMaths plus(Long constant)
addition of an int public ArrayMaths plus(int constant)
addition of an Integer public ArrayMaths plus(Integer constant)
addition of a short public ArrayMaths plus(short constant)
addition of a Short public ArrayMaths plus(Short constant)
addition of a byte public ArrayMaths plus(byte constant)
addition of a Byte public ArrayMaths plus(Byte constant)
addition of a BigDecimal public ArrayMaths plus(BigDecimal constant)
addition of a BigInteger public ArrayMaths plus(BigInteger constant)
addition of a Complex public ArrayMaths plus(Complex constant)
addition of a Phasor public ArrayMaths plus(Phasor constant)
addition of a char public ArrayMaths plus(char constant)
addition of a Character public ArrayMaths plus(Characterr constant)
addition of a String public ArrayMaths plus(String constant)
Addition of an array addition of a Stat public ArrayMaths plus(Stat arrays)
addition of an ArrayMaths public ArrayMaths plus(ArrayMaths arraym)
addition of a Vector public ArrayMaths plus(Vector<Object> vec)
addition of an ArrayList public ArrayMaths plus(ArrayList<Object> list)
addition of a double public ArrayMaths plus(double[] array)
addition of a Double public ArrayMaths plus(Double[] array)
addition of a float[] public ArrayMaths plus(float[] array)
addition of a Float[] public ArrayMaths plus(Float[] array)
addition of a long[] public ArrayMaths plus(long[] array)
addition of a Long[] public ArrayMaths plus(Long[] array)
addition of an int[] public ArrayMaths plus(int[] array)
addition of an Integer[] public ArrayMaths plus(Integer[] array)
addition of a short[] public ArrayMaths plus(short[] array)
addition of a Short[] public ArrayMaths plus(Short[] array)
addition of a byte[] public ArrayMaths plus(byte[] array)
addition of a Byte[] public ArrayMaths plus(Byte[] array)
addition of a BigDecimal[] public ArrayMaths plus(BigDecimal[] array)
addition of a BigInteger[] public ArrayMaths plus(BigInteger[] array)
addition of a Complex[] public ArrayMaths plus(Complex[] array)
addition of a Phasor[] public ArrayMaths plus(Phasor[] array)
addition of a char[] public ArrayMaths plus(char[] array)
addition of a Character[] public ArrayMaths plus(Character[] array)
addition of a String[] public ArrayMaths plus(String[] array)
Subtraction of a constant subtraction of a double public ArrayMaths minus(double constant)
subtraction of a Double public ArrayMaths minus(Double constant)
subtraction of a float public ArrayMaths minus(float constant)
subtraction of a Float public ArrayMaths minus(Float constant)
subtraction of a long public ArrayMaths minus(long constant)
subtraction of a Long public ArrayMaths minus(Long constant)
subtraction of an int public ArrayMaths minus(int constant)
subtraction of an Integer public ArrayMaths minus(Integer constant)
subtraction of a short public ArrayMaths minus(short constant)
subtraction of a Short public ArrayMaths minus(Short constant)
subtraction of a byte public ArrayMaths minus(byte constant)
subtraction of a Byte public ArrayMaths minus(Byte constant)
subtraction of a BigDecimal public ArrayMaths minus(BigDecimal constant)
subtraction of a BigInteger public ArrayMaths minus(BigInteger constant)
subtraction of a Complex public ArrayMaths minus(Complex constant)
subtraction of a Phasor public ArrayMaths minus(Phasor constant)
Subtraction of an array subtraction of a Stat public ArrayMaths minus(Stat arrays)
subtraction of an ArrayMaths public ArrayMaths minus(ArrayMaths arraym)
subtraction of a Vector public ArrayMaths minus(Vector<Object> vec)
subtraction of an ArrayList public ArrayMaths minus(ArrayList<Object> list)
subtraction of a double[] public ArrayMaths minus(double[] array)
subtraction of a Double[] public ArrayMaths minus(Double[] array)
subtraction of a float[] public ArrayMaths minus(float[] array)
subtraction of a Float[] public ArrayMaths minus(Float[] array)
subtraction of a long[] public ArrayMaths minus(long[] array)
subtraction of a Long[] public ArrayMaths minus(Long[] array)
subtraction of an int[] public ArrayMaths minus(int[] array)
subtraction of an Integer[] public ArrayMaths minus(Integer[] array)
subtraction of a short[] public ArrayMaths minus(short[] array)
subtraction of a Short[] public ArrayMaths minus(Short[] array)
subtraction of a byte[] public ArrayMaths minus(byte[] array)
subtraction of a Byte[] public ArrayMaths minus(Byte[] array)
subtraction of a BigDecimal[] public ArrayMaths minus(BigDecimal[] array)
subtraction of a BigInteger[] public ArrayMaths minus(BigInteger[] array)
subtraction of a Complex[] public ArrayMaths minus(Complex[] array)
subtraction of a Phasor[] public ArrayMaths minus(Phasor[] array)
Multiplication by a constant multiplication by a double public ArrayMaths times(double constant)
multiplication by a Double public ArrayMaths times(Double constant)
multiplication by a float public ArrayMaths times(float constant)
multiplication by a Float public ArrayMaths times(Float constant)
multiplication by a long public ArrayMaths times(long constant)
multiplication by a Long public ArrayMaths times(Long constant)
multiplication by an int public ArrayMaths times(int constant)
multiplication by an Integer public ArrayMaths times(Integer constant)
multiplication by a short public ArrayMaths times(short constant)
multiplication by a Short public ArrayMaths times(Short constant)
multiplication by a byte public ArrayMaths times(byte constant)
multiplication by a Byte public ArrayMaths times(Byte constant)
multiplication by a BigDecimal public ArrayMaths times(BigDecimal constant)
multiplication by a BigInteger public ArrayMaths times(BigInteger constant)
multiplication by a Complex public ArrayMaths times(Complex constant)
multiplication by a Phasor public ArrayMaths times(Phasor constant)
Division by a constant division by a double public ArrayMaths over(double constant)
division by a Double public ArrayMaths over(Double constant)
division by a float public ArrayMaths over(float constant)
division by a Float public ArrayMaths over(Float constant)
division by a long public ArrayMaths over(long constant)
division by a Long public ArrayMaths over(Long constant)
division by an int public ArrayMaths over(int constant)
division by an Integer public ArrayMaths over(Integer constant)
division by a short public ArrayMaths over(short constant)
division by a Short public ArrayMaths over(Short constant)
division by a byte public ArrayMaths over(byte constant)
division by a Byte public ArrayMaths over(Byte constant)
division by a BigDecimal public ArrayMaths over(BigDecimal constant)
division by a BigInteger public ArrayMaths over(BigInteger constant)
division by a Complex public ArrayMaths over(Complex constant)
division by a Phasor public ArrayMaths over(Phasor constant)
Sum of all elements as a double public double sum()
public double sum_as_double()
as a Double public Double sum_as_Double()
as a float public float sum_as_float()
as a Float public Float sum_as_Float()
as a long public long sum_as_long()
as a Long public Long sum_as_Long()
as an int public int sum_as_int()
as an Integer public Integer sum_as_Integer()
as a short public short sum_as_short()
as a Short public Short sum_as_Short()
as a byte public byte sum_as_byte()
as a Byte public Byte sum_as_Byte()
as a BigDecimal public BigDecimal sum_as_BigDecimal()
as a BigInteger public BigInteger sum_as_BigInteger()
as a Complex public Complex sum_as_Complex()
as a Phasor public Phasorsum_as_Phasor()
as a String[] public String sum_as_String()
Product of all elements as a double public double product_as_double()
public double product_as_double()
as a Double Double product_as_Double()
as a float public float product_as_float()
as a Float public Float product_as_Float()
as a long public long product_as_long()
as a Long public Long product_as_Long()
as an int public int product_as_int()
as an Integer public Integer product_as_Integer()
as a short public short product_as_short()
as a Short public Short product_as_Short()
as a byte public byte product_as_byte()
as a Byte public Byte product_as_Byte()
as a BigDecimal public BigDecimal product_as_BigDecimal()
as a BigInteger public BigInteger product_as_BigInteger()
as a Complex public Complex product_as_Complex()
as a Phasor public Phasorproduct_as_Phasor()
as a String[] public String product_as_String()
Truncate each array elements   public ArrayMaths truncate(int n)
Round each array elements to nearest integer   public ArrayMaths rint()
Round up each array elements   public ArrayMaths ceil()
Round down each array elements   public ArrayMaths floor()
Raise each array element to a power   public ArrayMaths pow(double n)
public ArrayMaths pow(float n)
public ArrayMaths pow(long n)
public ArrayMaths pow(int n)
public ArrayMaths pow(short n)
public ArrayMaths pow(byte n)
public ArrayMaths pow(Double n)
public ArrayMaths pow(Float n)
public ArrayMaths pow(Long n)
public ArrayMaths pow(Integer n)
public ArrayMaths pow(Short n)
public ArrayMaths pow(Byte n)
public ArrayMaths pow(BigDecimal n)
public ArrayMaths pow(BigInteger n)
Take the square root of each array element   public ArrayMaths sqrt()
Take the inverse of the square root of each array element   public ArrayMaths oneOverSqrt()
Take absolute value of each array element   public ArrayMaths abs()
Logarithms Take the natural log of each array element public ArrayMaths log()
Take the log to base 2 of each array element public ArrayMaths log2()
Take the log to base 10 of each array element public ArrayMaths log10()
Take the antilog to base 10 of each array element public ArrayMaths antilog10()
Take the x.log2(x) of each array element, x public ArrayMaths xLog2x()
Take the x.logE(x) of each array element, x public ArrayMaths xLogEx()
Take the x.log10(x) of each array element, x public ArrayMaths xLog10x()
Take the -x.log2(x) of each array element, x public ArrayMaths minusxLog2x()
Take the -x.logE(x) of each array element, x public ArrayMaths minusxLogEx()
Take the -x.log10(x) of each array element, x public ArrayMaths minusxLog10x()
Take the exponential of each array element   public ArrayMaths exp()
Invert each array element   public ArrayMaths invert()
Negate each array element   public ArrayMaths negate()
Sort the array arrange in ascending order public ArrayMaths sort()
public void sortEquals()
arrange to a given order of indices public ArrayMaths sort(int[] indices)
public void sortEquals(int[] indices)
return original indices public int[] originalIndices()
Randomize the order of the array randomize public ArrayMaths randomize()
return original indices public int[] originalIndices()
Reverse order of elements of the array reverse the array public ArrayMaths reverse()
return original indices public int[] originalIndices()
Check if all elements are, arithmetically, integers   public boolean isInteger()
Concatenation   public ArrayMaths concatenate(Stat xx)
public ArrayMaths concatenate(ArrayMaths xx)
public ArrayMaths concatenate(double[] xx)
public ArrayMaths concatenate(float[] xx)
public ArrayMaths concatenate(long[] xx)
public ArrayMaths concatenate(int[] xx)
public ArrayMaths concatenate(short[] xx)
public ArrayMaths concatenate(byte[] xx)
public ArrayMaths concatenate(char[] xx)
public ArrayMaths concatenate(Double[] xx)
public ArrayMaths concatenate(Float[] xx)
public ArrayMaths concatenate(Long[] xx)
public ArrayMaths concatenate(Integer[] xx)
public ArrayMaths concatenate(Short[] xx)
public ArrayMaths concatenate(Byte[] xx)
public ArrayMaths concatenate(Character[] xx)
public ArrayMaths concatenate(String[] xx)
public ArrayMaths concatenate(BigDecimal[] xx)
public ArrayMaths concatenate(BigInteger[] xx)
public ArrayMaths concatenate(Complex[] xx)
public ArrayMaths concatenate(Phasor[] xx)
Find first index of a value within an array   public int indexOf(double value)
public int indexOf(float value)
public int indexOf(long value)
public int indexOf(int value)
public int indexOf(short value)
public int indexOf(byte value)
public int indexOf(char value)
public int indexOf(Double value)
public int indexOf(Float value)
public int indexOf(Long value)
public int indexOf(Integer value)
public int indexOf(Short value)
public int indexOf(Byte value)
public int indexOf(Character value)
public int indexOf(String value)
public int indexOf(BigDecimal value)
public int indexOf(BigInteger value)
public int indexOf(Complex value)
public int indexOf(Phasor value)
Find all indices of a value within an array   public int[] indicesOf(double value)
public int[] indicesOf(float value)
public int[] indicesOf(long value)
public int[] indicesOf(int value)
public int[] indicesOf(short value)
public int[] indicesOf(byte value)
public int[] indicesOf(char value)
public int[] indicesOf(Double value)
public int[] indicesOf(Float value)
public int[] indicesOf(Long value)
public int[] indicesOf(Integer value)
public int[] indicesOf(Short value)
public int[] indicesOf(Byte value)
public int[] indicesOf(Character value)
public int[] indicesOf(String value)
public int[] indicesOf(BigDecimal value)
public int[] indicesOf(BigInteger value)
public int[] indicesOf(Complex value)
public int[] indicesOf(Phasor value)
Find ithe value of the element nearest to a given value   public double nearestValue(double value)
public float nearestValue(float value)
public long nearestValue(long value)
public int nearestValue(int value)
public short nearestValue(short value)
public byte nearestValue(byte value)
public char nearestValue(char value)
public Double nearestValue(Double value)
public Float nearestValue(Float value)
public Long nearestValue(Long value)
public Integer nearestValue(Integer value)
public Short nearestValue(Short value)
public Byte nearestValue(Byte value)
public Character nearestValue(Character value)
public BigDecimal nearestValue(BigDecimal value)
public BigInteger nearestValue(BigInteger value)
Find index of element nearest to a given value   public int nearestIndex(double value)
public int nearestIndex(float value)
public int nearestIndex(long value)
public int nearestIndex(int value)
public int nearestIndex(short value)
public int nearestIndex(byte value)
public int nearestIndex(char value)
public int nearestIndex(Double value)
public int nearestIndex(Float value)
public int nearestIndex(Long value)
public int nearestIndex(Integer value)
public int nearestIndex(Short value)
public int nearestIndex(Byte value)
public int nearestIndex(Character value)
public int nearestIndex(BigDecimal value)
public int nearestIndex(BigInteger value)
Maximum difference between the elelments (array range)   public double maximumDifference()
public double maximumDifference_as_double()
public float maximumDifference_as_float()
public long maximumDifference_as_long()
public int maximumDifference_as_int()
public short maximumDifference_as_short()
public byte maximumDifference_as_byte()
public Double maximumDifference_as_Double()
public Float maximumDifference_as_Float()
public Long maximumDifference_as_Long()
public Integer maximumDifference_as_Integer()
public Short maximumDifference_as_Short()
public Byte maximumDifference_as_Byte()
public BigDecimal maximumDifference_as_BigDecimal()
public BigInteger maximumDifference_as_BigInteger()
Minimum difference between the elelments   public double minimumDifference()
public double minimumDifference_as_double()
public float minimumDifference_as_float()
public long minimumDifference_as_long()
public int minimumDifference_as_int()
public short minimumDifference_as_short()
public byte minimumDifference_as_byte()
public Double minimumDifference_as_Double()
public Float minimumDifference_as_Float()
public Long minimumDifference_as_Long()
public Integer minimumDifference_as_Integer()
public Short minimumDifference_as_Short()
public Byte minimumDifference_as_Byte()
public BigDecimal minimumDifference_as_BigDecimal()
public BigInteger minimumDifference_as_BigInteger()
Print array to screen without line returns public void print()
with line returns public void println()
Plot array   public void plot(int n)




OTHER CLASSES USED BY THIS CLASS

This class uses the following classes in this library:


PERMISSION TO COPY

Permission to use, copy and modify this software and its documentation for NON-COMMERCIAL purposes is granted, without fee, provided that an acknowledgement to the author, Dr Michael Thomas Flanagan at www.ee.ucl.ac.uk/~mflanaga, appears in all copies and associated documentation or publications. Dr Michael Thomas Flanagan makes no representations about the suitability or fitness of the software for any or for a particular purpose. Dr Michael Thomas Flanagan shall not be liable for any damages suffered as a result of using, modifying or distributing this software or its derivatives.

Redistributions of the source code of this class, or parts of the source codes, must retain the copyright notice, this list of conditions and the following disclaimer (all at the top of the source code) and requires written permission from the Michael Thomas Flanagan:

Redistribution in binary form of all or parts of this class must reproduce the copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution and requires written permission from the Michael Thomas Flanagan:
.



This page was prepared by Dr Michael Thomas Flanagan