Ejemplo n.º 1
0
 public override double SumSquaredDiffs(BaseVector y)
 {
     if (y is SparseVector) {
         return SparseVector.SumSquaredDiffs(this, (SparseVector)y);
     }
     if (y is DoubleArrayVector) {
         return SumSquaredDiffs(this, (DoubleArrayVector)y);
     }
     return SumSquaredDiffs(this, (FloatArrayVector)y);
 }
Ejemplo n.º 2
0
 public override double Dot(BaseVector y)
 {
     if (y is SparseVector) {
         return SparseVector.Dot(this, (SparseVector)y);
     }
     if (y is DoubleArrayVector) {
         return Dot(this, (DoubleArrayVector)y);
     }
     return Dot(this, (FloatArrayVector)y);
 }
Ejemplo n.º 3
0
 public override double SumSquaredDiffs(BaseVector y)
 {
     if (y is FloatArrayVector)
     {
         return(SumSquaredDiffs((FloatArrayVector)y, this));
     }
     if (y is DoubleArrayVector)
     {
         return(SumSquaredDiffs((DoubleArrayVector)y, this));
     }
     return(SumSquaredDiffs(this, (SparseVector)y));
 }
Ejemplo n.º 4
0
 public override double Dot(BaseVector y)
 {
     if (y is FloatArrayVector)
     {
         return(Dot((FloatArrayVector)y, this));
     }
     if (y is DoubleArrayVector)
     {
         return(Dot((DoubleArrayVector)y, this));
     }
     return(Dot(this, (SparseVector)y));
 }
Ejemplo n.º 5
0
 public abstract double Dot(BaseVector svmVector);
Ejemplo n.º 6
0
 public abstract double SumSquaredDiffs(BaseVector y1);
Ejemplo n.º 7
0
 public abstract double SumSquaredDiffs(BaseVector y1);
Ejemplo n.º 8
0
 public abstract double Dot(BaseVector svmVector);