示例#1
0
 @Override
 public float execute_float(ProgramChromosome c, int n, Object[] args) {
   int size = size();
   DescriptiveStatistics stats = new DescriptiveStatistics();
   for (int i = 0; i < size; i++) {
     stats.addValue(c.execute_float(n, i, args));
   }
   return (float) stats.getSkewness();
 }
 /** {@inheritDoc} */
 @Override
 public synchronized void addValue(double v) {
   super.addValue(v);
 }