Definition at line 286 of file Fisher.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::Matrix::MatMul(), mMapped, mOffset, mProbabilities, mRotation, Impala::Core::Vector::SetPart(), Impala::Core::Array::SetVal(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::SetValue(), SigmoidMap(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value(), and Impala::Core::Array::W. Referenced by CNormC(), Predict(), and Rank(). 00287 { 00288 if(mMapped) 00289 delete mMapped; 00290 if(mProbabilities) 00291 delete mProbabilities; 00292 00293 00294 int W=feats->CW(); 00295 int H=feats->CH(); 00296 00297 Matrix::Mat* Features = Matrix::MatCreate<Array::Array2dScalarReal64>(H,W+1); 00298 00299 Array::SetVal(Features,1); 00300 Array::SetPart(Features,feats,0,0,W,H,0,0); 00301 00302 Matrix::Mat* Rot = Matrix::MatCreate<Array::Array2dScalarReal64>(W+1,2); 00303 Array::SetPart(Rot,mRotation,0,0,2,W,0,0); 00304 00305 Rot->SetValue(mOffset->Value(0,0),0,W); 00306 Rot->SetValue(mOffset->Value(1,0),1,W); 00307 00308 mMapped = Matrix::MatMul(Features,Rot); 00309 00310 mProbabilities = SigmoidMap(mMapped,1); 00311 00312 delete Rot; 00313 delete Features; 00314 00315 }
Here is the call graph for this function:
|