필터 지우기
필터 지우기

How to compute WRMS of a time series

조회 수: 9 (최근 30일)
Chris Martin
Chris Martin 2015년 1월 1일
편집: Jules Ray 2018년 5월 1일
How to compute WRMS of a time series
  댓글 수: 2
Chris Martin
Chris Martin 2015년 1월 6일
I did it
Jules Ray
Jules Ray 2018년 5월 1일
편집: Jules Ray 2018년 5월 1일
and? I am searching for the same, til now I just computed the RSME
function [rmse,rms] = nanrms(dife,varargin)
%NANRMS Root mean square.
% For vectors, NANRMS(x) returns the root mean square.
% For matrices, NANRMS(X) is a row vector containing the
% root mean square of each column. All NaN valuez
% are neglected.
%
% NANRMS(X,DIM) takes the rms along the dimension DIM of X.
%Dwonloaded from Matlab, modified by Julius Jara
%See also: RMS, nanMEAN, nanMAX, nanMIN, STD
% $Id$
% $Date$
% $Author$
% $Revision$
% $HeadURL$
% $Keywords$
if isempty(dife)
%if isempty(x)
%y = NaN;
rmse = NaN;
return
end
% rmse = sqrt(nanmean(dife.^2,varargin{:}))/numel(dife);
% rmse=sqrt(sum(dife).^2)/numel(dife);
rms= sqrt (nanmean (dife .^2) );
rmse=rms/numel(dife);

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by