|
@@ -604,7 +604,7 @@ void FastMinKernel::hik_kernel_multiply_fast(const double *_Tlookup,
|
|
const SortedVectorSparse<double>::dataelement & de = i->second;
|
|
const SortedVectorSparse<double>::dataelement & de = i->second;
|
|
uint feat = de.first;
|
|
uint feat = de.first;
|
|
uint qBin = _q->quantize( i->first, dim );
|
|
uint qBin = _q->quantize( i->first, dim );
|
|
- _beta[feat] += _Tlookup[dim*_q->size() + qBin];
|
|
|
|
|
|
+ _beta[feat] += _Tlookup[dim*_q->getNumberOfBins() + qBin];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -780,7 +780,7 @@ void FastMinKernel::hik_kernel_sum_fast(const double *_Tlookup,
|
|
double v = _xstar[dim];
|
|
double v = _xstar[dim];
|
|
uint qBin = _q->quantize( v, dim );
|
|
uint qBin = _q->quantize( v, dim );
|
|
|
|
|
|
- _beta += _Tlookup[dim*_q->size() + qBin];
|
|
|
|
|
|
+ _beta += _Tlookup[dim*_q->getNumberOfBins() + qBin];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -801,7 +801,7 @@ void FastMinKernel::hik_kernel_sum_fast(const double *_Tlookup,
|
|
double v = i->second;
|
|
double v = i->second;
|
|
uint qBin = _q->quantize( v, dim );
|
|
uint qBin = _q->quantize( v, dim );
|
|
|
|
|
|
- _beta += _Tlookup[dim*_q->size() + qBin];
|
|
|
|
|
|
+ _beta += _Tlookup[dim*_q->getNumberOfBins() + qBin];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -826,7 +826,7 @@ double *FastMinKernel::solveLin(const NICE::Vector & _y,
|
|
bool verboseMinimal ( false );
|
|
bool verboseMinimal ( false );
|
|
|
|
|
|
// number of quantization bins
|
|
// number of quantization bins
|
|
- uint hmax = _q->size();
|
|
|
|
|
|
+ uint hmax = _q->getNumberOfBins();
|
|
|
|
|
|
NICE::Vector diagonalElements(_y.size(),0.0);
|
|
NICE::Vector diagonalElements(_y.size(),0.0);
|
|
this->X_sorted.hikDiagonalElements(diagonalElements);
|
|
this->X_sorted.hikDiagonalElements(diagonalElements);
|
|
@@ -1426,7 +1426,7 @@ void FastMinKernel::hikComputeKVNApproximationFast(const double *_Tlookup,
|
|
// nonetheless, the lookup table was created using the parameterized function
|
|
// nonetheless, the lookup table was created using the parameterized function
|
|
uint qBin = _q->quantize( v, dim );
|
|
uint qBin = _q->quantize( v, dim );
|
|
|
|
|
|
- _norm += _Tlookup[dim*_q->size() + qBin];
|
|
|
|
|
|
+ _norm += _Tlookup[dim*_q->getNumberOfBins() + qBin];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1569,7 +1569,7 @@ void FastMinKernel::hikComputeKVNApproximationFast(const double *_Tlookup,
|
|
// nonetheless, the lookup table was created using the parameterized function
|
|
// nonetheless, the lookup table was created using the parameterized function
|
|
uint qBin = _q->quantize( v, dim );
|
|
uint qBin = _q->quantize( v, dim );
|
|
|
|
|
|
- _norm += _Tlookup[dim*_q->size() + qBin];
|
|
|
|
|
|
+ _norm += _Tlookup[dim*_q->getNumberOfBins() + qBin];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|