How to compute WRMS of a time series

6 vues (au cours des 30 derniers jours)
Chris Martin
Chris Martin le 1 Jan 2015
Modifié(e) : Jules Ray le 1 Mai 2018
How to compute WRMS of a time series
  2 commentaires
Chris Martin
Chris Martin le 6 Jan 2015
I did it
Jules Ray
Jules Ray le 1 Mai 2018
Modifié(e) : Jules Ray le 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);

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Polynomials dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by