本文整理汇总了C++中matrix::Matrix::getN方法的典型用法代码示例。如果您正苦于以下问题:C++ Matrix::getN方法的具体用法?C++ Matrix::getN怎么用?C++ Matrix::getN使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matrix::Matrix
的用法示例。
在下文中一共展示了Matrix::getN方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setSensorTeaching
void PiMax::setSensorTeaching(const matrix::Matrix& teaching){
assert(teaching.getM() == number_sensors && teaching.getN() == 1);
// calculate the a_teaching,
// that belongs to the distal teaching value by the inverse model.
a_teaching = (A.pseudoInverse() * (teaching-b)).mapP(0.95, clip);
intern_isTeaching=true;
}
示例2: setMotorTeaching
void PiMax::setMotorTeaching(const matrix::Matrix& teaching){
assert(teaching.getM() == number_motors && teaching.getN() == 1);
// Note: through the clipping the otherwise effectless
// teaching with old motor value has now an effect,
// namely to drive out of the saturation region.
a_teaching= teaching.mapP(0.95,clip);
intern_isTeaching=true;
}
示例3: setC
void SosAvgGrad::setC(const matrix::Matrix& _C){
assert(C.getM() == _C.getM() && C.getN() == _C.getN());
C=_C;
}
示例4: setA
void SosAvgGrad::setA(const matrix::Matrix& _A){
assert(A.getM() == _A.getM() && A.getN() == _A.getN());
A=_A;
}
示例5: setS
void SosAvgGrad::setS(const matrix::Matrix& _S){
assert(S.getM() == _S.getM() && S.getN() == _S.getN());
S=_S;
}
示例6: setC
void PiMax::setC(const matrix::Matrix& _C){
assert(C.getM() == _C.getM() && C.getN() == _C.getN());
C=_C;
}
示例7: seth
void PiMax::seth(const matrix::Matrix& _h){
assert(h.getM() == _h.getM() && h.getN() == _h.getN());
h=_h;
}
示例8: seth
void RandomDyn::seth(const matrix::Matrix& _h){
assert(h.getM() == _h.getM() && h.getN() == _h.getN());
h=_h;
}
示例9: setA
void PiMax::setA(const matrix::Matrix& _A){
assert(A.getM() == _A.getM() && A.getN() == _A.getN());
A=_A;
}
示例10: setC
void RandomDyn::setC(const matrix::Matrix& _C){
assert(C.getM() == _C.getM() && C.getN() == _C.getN());
C=_C;
}
示例11: keepMatrixTraceUp
static void keepMatrixTraceUp(matrix::Matrix& m){
int l = std::min((short unsigned int)2,std::min(m.getM(), m.getN()));
for(int i=0; i<l; i++){
if(m.val(i,i)<0.8) m.val(i,i)+=0.001;
}
}
示例12: seth
virtual void seth(const matrix::Matrix& _h){
assert(h.getM() == _h.getM() && h.getN() == _h.getN());
h=_h;
}
示例13: setC
virtual void setC(const matrix::Matrix& _C){
assert(C.getM() == _C.getM() && C.getN() == _C.getN());
C=_C;
}
示例14: setSensorTeaching
void SeMoX::setSensorTeaching(const matrix::Matrix& teaching){
assert(teaching.getM() == number_sensors && teaching.getN() == 1);
// calculate the y_teaching, that belongs to the distal teaching value by the inverse model.
y_teaching = (A.pseudoInverse(0.001) * (teaching-B)).mapP(0.95, clip);
intern_useTeaching=true;
}