Add padding and test
This commit is contained in:
@@ -96,7 +96,22 @@ namespace Aurora {
|
||||
*/
|
||||
Matrix polyval(const Matrix& aP, const Matrix& aX);
|
||||
|
||||
/**
|
||||
* 将所有nan值设置为特定值
|
||||
* @attention 直接在原数据上进行修改!
|
||||
* @param aMatrix 向量
|
||||
* @param val 指定值
|
||||
*/
|
||||
void nantoval(Matrix& aMatrix,double val);
|
||||
|
||||
/**
|
||||
* 使用特定值补齐矩阵,默认为设置原数据矩阵数据到制定长度索引的所有值为制定值
|
||||
* @attention 直接在原数据上进行修改!
|
||||
* @param aMatrix 向量
|
||||
* @param aIndex 长度索引
|
||||
* @param aValue 指定值
|
||||
*/
|
||||
void padding(Matrix& aMatrix, int aIndex, double aValue);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user