utils
Class TestParameters

java.lang.Object
  |
  +--utils.TestParameters

public class TestParameters
extends java.lang.Object

TestParameters

Version:
0.1
Author:
mladoue

Constructor Summary
TestParameters()
           
 
Method Summary
static int getDoubleNumbersInATable(double[] table)
          Returns the number of value which are different in this table
static int getIntNumbersInATable(int[] table)
          Returns the number of value which are different in this table
static double getMaximumDoubleValue(double[] data)
          Method getMaximumDoubleValue : To determine in an double[] which is the greatest value
static int getMaximumIntValue(int[] data)
          Method getMaximumIntValue : To determine in an int[] which is the greatest value
static double getMinimumDoubleValue(double[] data)
          Method getMinimumDoubleValue : To determine in an double[] which is the smallest value
static int getMinimumIntValue(int[] data)
          Method getMinimumIntValue : To determine in an int[] which is the smallest value
static boolean has2DIntTableSameColumnsNumber(int[][] values)
           
static boolean hasDoubleTableSameValues(double[] table)
          Returns true if all values of this table(double) are the same, else false
static boolean hasIntTableSameValues(int[] table)
          Returns true if all values of this table(int) are the same, else false
static boolean isAudioTest(java.lang.String modelName)
           
static void main(java.lang.String[] args)
          Methode: Main pour tester la classe
static boolean testNormalizedParameter(double[] parameter)
          Method testNormalizedParameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestParameters

public TestParameters()
Method Detail

has2DIntTableSameColumnsNumber

public static boolean has2DIntTableSameColumnsNumber(int[][] values)

hasDoubleTableSameValues

public static boolean hasDoubleTableSameValues(double[] table)
Returns true if all values of this table(double) are the same, else false

Parameters:
table - of double
Returns:
a boolean

hasIntTableSameValues

public static boolean hasIntTableSameValues(int[] table)
Returns true if all values of this table(int) are the same, else false

Parameters:
table - of int
Returns:
a boolean

getIntNumbersInATable

public static int getIntNumbersInATable(int[] table)
Returns the number of value which are different in this table

Parameters:
table - it's an array of int
Returns:
0 if all the value are equals, 1 there is 2 different values etc

getDoubleNumbersInATable

public static int getDoubleNumbersInATable(double[] table)
Returns the number of value which are different in this table

Parameters:
table - it's an array of double
Returns:
0 if all the value are equals, 1 there is 2 different values etc

getMaximumIntValue

public static int getMaximumIntValue(int[] data)
Method getMaximumIntValue : To determine in an int[] which is the greatest value

Parameters:
data -
Returns:
the greatest value in a double array

getMaximumDoubleValue

public static double getMaximumDoubleValue(double[] data)
Method getMaximumDoubleValue : To determine in an double[] which is the greatest value

Parameters:
data - an array of double
Returns:
the greatest double in a table

getMinimumIntValue

public static int getMinimumIntValue(int[] data)
Method getMinimumIntValue : To determine in an int[] which is the smallest value

Parameters:
data -
Returns:
the smallest int in a table

getMinimumDoubleValue

public static double getMinimumDoubleValue(double[] data)
Method getMinimumDoubleValue : To determine in an double[] which is the smallest value

Parameters:
data - an array of double
Returns:
the smallest value in a double array

testNormalizedParameter

public static boolean testNormalizedParameter(double[] parameter)
Method testNormalizedParameter. Test if the parameter value is normalized or not

Parameters:
parameter -
Returns:
boolean

isAudioTest

public static boolean isAudioTest(java.lang.String modelName)

main

public static void main(java.lang.String[] args)
Methode: Main pour tester la classe