protected Vector<Double> makeTestValueList(int seed,int numValues,double minValue,double maxValue,int attrType) throws Exception {
  double range=maxValue - minValue;
  Vector<Double> values=new Vector<Double>(numValues);
  Random random=new Random(seed);
  if (attrType == Attribute.NOMINAL) {
    for (int i=0; i < numValues; i++) {
      Double v=new Double((Math.abs(random.nextInt()) % (int)range) + (int)minValue);
      values.add(v);
    }
  }
  if (attrType == Attribute.NUMERIC) {
    for (int i=0; i < numValues; i++) {
      Double v=new Double(random.nextDouble() * range + minValue);
      values.add(v);
    }
  }
  return values;
}

protected Vector < Double > makeTestValueList ( int seed , int numValues , double minValue , double maxValue , int attrType ) throws Exception { double range = maxValue - minValue ; Vector < Double > values = new Vector < Double > ( numValues ) ; Random random = new Random ( seed ) ; if ( attrType == Attribute . NOMINAL ) { for ( int i = 0 ; i < numValues ; i ++ ) { Double v = new Double ( ( Math . abs ( random . nextInt ( ) ) % ( int ) range ) + ( int ) minValue ) ; values . add ( v ) ; } } if ( attrType == Attribute . NUMERIC ) { for ( int i = 0 ; i < numValues ; i ++ ) { Double v = new Double ( random . nextDouble ( ) * range + minValue ) ; values . add ( v ) ; } } return values ; }
make a simple set of values . only one of the num ' type ' parameters should be larger 0 . ( just to make parameter similar to the maketestdataset parameters )
