hydroScalingAPI.tools
Class ArrayTools

java.lang.Object
  extended by hydroScalingAPI.tools.ArrayTools

public abstract class ArrayTools
extends java.lang.Object

An abstract class with a set of tools to manipulate arrays

Author:
Ricardo Mantilla

Constructor Summary
ArrayTools()
           
 
Method Summary
static java.lang.Object[] concatentate(java.lang.Object[] StArr1, java.lang.Object[] StArr2)
          Concatenates two Object Arrays
static int[] convertFloatArrayToIntArray(float[] theFloatArray)
          Casts float values to int
static float[] convertTwoToOne(float[][] twoArray)
          Changes the dimensions of a two dimensional array into a one dimensional array
static float[] eliminate(float[] theFloatArray, int pos)
          Removes a given position from the array
static void printArray(int[] theArray)
          Prints the contents of an integer array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayTools

public ArrayTools()
Method Detail

eliminate

public static float[] eliminate(float[] theFloatArray,
                                int pos)
Removes a given position from the array

Parameters:
theFloatArray - The original array with float falues
pos - The position to remove
Returns:
A new array of integers

concatentate

public static java.lang.Object[] concatentate(java.lang.Object[] StArr1,
                                              java.lang.Object[] StArr2)
Concatenates two Object Arrays

Parameters:
StArr1 - The first Object array
StArr2 - The second Object array
Returns:
A new concatenated Object array

convertFloatArrayToIntArray

public static int[] convertFloatArrayToIntArray(float[] theFloatArray)
Casts float values to int

Parameters:
theFloatArray - The original array with float falues
Returns:
A new array of integers

printArray

public static void printArray(int[] theArray)
Prints the contents of an integer array

Parameters:
theArray - The int array to print

convertTwoToOne

public static float[] convertTwoToOne(float[][] twoArray)
Changes the dimensions of a two dimensional array into a one dimensional array

Parameters:
twoArray - The original two dimensional array
Returns:
A one dimensional array


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.