public Hyperpoint(String s){
  ArrayList<String> al=new ArrayList<String>();
  StringTokenizer st=new StringTokenizer(s,",");
  while (st.hasMoreTokens()) {
    al.add(st.nextToken());
  }
  dimensionality=al.size();
  values=new double[dimensionality];
  for (int i=1; i <= dimensionality; i++) {
    values[i - 1]=Double.valueOf(al.get(i - 1));
  }
}

public Hyperpoint ( String s ) { ArrayList < String > al = new ArrayList < String > ( ) ; StringTokenizer st = new StringTokenizer ( s , "," ) ; while ( st . hasMoreTokens ( ) ) { al . add ( st . nextToken ( ) ) ; } dimensionality = al . size ( ) ; values = new double [ dimensionality ] ; for ( int i = 1 ; i <= dimensionality ; i ++ ) { values [ i - 1 ] = Double . valueOf ( al . get ( i - 1 ) ) ; } }
construct hyperpoint when given a comma - separated string of doubles . < p > the number of dimensions in the resulting hyperpoint is based on the number of values in the string .
