Code for utility functions to PairedStats tester

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Code for utility functions to PairedStats tester

Surendra Singhi
Hi,

I would suggest adding these two functions to the class PairedStats.

These are utility functions which allow adding an array of values, so it may
not be a very high priority/significant.

/**
   * Adds an array of observed pair of values.
   *
   * @param value1 the array containing values from column 1
   * @param value2 the array containing values from column 2
   */
  public void add(double value1[], double value2[]) {
  for(int i=0;i<value1.length;i++) {
  add(value1[i],value2[i]);
  }
  }


  /**
   * Removes an array of observed pair of values.
   *
   * @param value1 the array containing values from column 1
   * @param value2 the array containing values from column 2
   */
  public void subtract(double value1[], double value2[]) {
  for(int i=0;i<value1.length;i++) {
  subtract(value1[i],value2[i]);
  }
  }  


Cheers,
--
Surendra Singhi
http://www.public.asu.edu/~sksinghi/

WHY SHOULD WE SAVE TIGER?  
Ans: Saving the tiger means saving mankind..

Help http://pudang.tripod.com/
or https://secure.worldwildlife.org/forms/tiger_appeal_1.cfm


_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist