How to compute WRMS of a time series

2 Ansichten (letzte 30 Tage)
Chris Martin
Chris Martin am 1 Jan. 2015
Bearbeitet: Jules Ray am 1 Mai 2018
How to compute WRMS of a time series
  2 Kommentare
Chris Martin
Chris Martin am 6 Jan. 2015
I did it
Jules Ray
Jules Ray am 1 Mai 2018
Bearbeitet: Jules Ray am 1 Mai 2018
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);

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Time Series finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by