public Distribution(float[] values){
  assert (values != null && values.length > 1);
  Arrays.sort(values);
  orderedValues=values.clone();
}

public Distribution ( float [ ] values ) { assert ( values != null && values . length > 1 ) ; Arrays . sort ( values ) ; orderedValues = values . clone ( ) ; }
constructs an instance from the given values , sorting them in the process .
