當前位置: 首頁>>代碼示例>>Java>>正文


Java DefaultMeasurementModel類代碼示例

本文整理匯總了Java中org.apache.commons.math3.filter.DefaultMeasurementModel的典型用法代碼示例。如果您正苦於以下問題:Java DefaultMeasurementModel類的具體用法?Java DefaultMeasurementModel怎麽用?Java DefaultMeasurementModel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DefaultMeasurementModel類屬於org.apache.commons.math3.filter包,在下文中一共展示了DefaultMeasurementModel類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Kalman

import org.apache.commons.math3.filter.DefaultMeasurementModel; //導入依賴的package包/類
/**
 * Default constructor used for a new timeline. 
 */
public Kalman() {
    ProcessModel pm = new DefaultProcessModel(DEFAULT_A, DEFAULT_B, DEFAULT_Q, DEFAULT_X_VECTOR, DEFAULT_P);
    MeasurementModel mm = new DefaultMeasurementModel(DEFAULT_H, DEFAULT_R);
    filter = new KalmanFilter(pm, mm);
    lastMemUpdated();
}
 
開發者ID:QualiMaster,項目名稱:Infrastructure,代碼行數:10,代碼來源:Kalman.java

示例2: setProperties

import org.apache.commons.math3.filter.DefaultMeasurementModel; //導入依賴的package包/類
@Override
protected void setProperties(Properties data) throws IllegalArgumentException {
    // currently constant - write/read for future extension
    Utils.getDouble(data, KEY_MEASUREMENT_NOISE, DEFAULT_MEASUREMENT_NOISE); // ignore value
    RealMatrix mA = getMatrix(data, KEY_MATRIX_A, DEFAULT_A);
    RealMatrix mB = getMatrix(data, KEY_MATRIX_B, DEFAULT_B);
    RealMatrix mH = getMatrix(data, KEY_MATRIX_H, DEFAULT_H);
    RealMatrix mQ = getMatrix(data, KEY_MATRIX_Q, DEFAULT_Q);
    RealMatrix mR = getMatrix(data, KEY_MATRIX_R, DEFAULT_R);

    // variable
    RealMatrix mP = getMatrix(data, KEY_MATRIX_P, DEFAULT_P);
    RealVector xVector = getVector(data, KEY_VECTOR_X, DEFAULT_X_VECTOR);
    controlVector = getVector(data, KEY_VECTOR_CONTROL, controlVector);
    lastUpdated = Utils.getLong(data, KEY_LAST_UPDATED, lastUpdated);
    lastUpdate = Utils.getDouble(data, KEY_LAST_UPDATE, lastUpdate);
    allowedGap = Utils.getInt(data, KEY_ALLOWED_GAP, allowedGap);
    defaultMeasurement = Utils.getDouble(data, KEY_DEFAULT_MEASUREMENT, defaultMeasurement);

    try {
        ProcessModel pm = new DefaultProcessModel(mA, mB, mQ, xVector, mP); // xVector, mP
        MeasurementModel mm = new DefaultMeasurementModel(mH, mR);
        filter = new KalmanFilter(pm, mm);
    } catch (NullArgumentException | DimensionMismatchException | MatrixDimensionMismatchException e) {
        throw new IllegalArgumentException(e.getMessage());
    }
}
 
開發者ID:QualiMaster,項目名稱:Infrastructure,代碼行數:28,代碼來源:Kalman.java


注:本文中的org.apache.commons.math3.filter.DefaultMeasurementModel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。