此行导致错误“构造函数 Vector(double[], double[]) 未定义”:
Vector<trainingSet> set = new Vector<trainingSet>({1.0, 1.0}, {0.0, 0.0});
而“trainingSet”类确实有一个对应的构造函数:
public class trainingSet {
public double [] pattern, result;
public trainingSet(){}
public trainingSet(double[] Pattern, double[] Result){
pattern = Pattern;
result = Result;
}
}
任何的想法?