WeightedMovingAverage - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Statistics

  

WeightedMovingAverage

  

compute weighted moving averages for a data set

 

Calling Sequence

Parameters

Description

Options

Examples

Calling Sequence

WeightedMovingAverage(X, Y, options)

Parameters

X

-

data set

Y

-

average

options

-

(optional) equation(s) of the form ignore=value; specify options for the WeightedMovingAverage function

Description

• 

The WeightedMovingAverage function computes weighted moving averages for a set of observations. This is a special case of the LinearFilter command.

• 

The first parameter X is a single data sample - given as e.g. a Vector. Each value represents an individual observation.

• 

The second parameter Y is the average - given as e.g. a Vector. Each value represents a average coefficient.

Options

  

The options argument can contain one or more of the options shown below. These options are described in more detail in the Statistics[Mean] help page.

• 

ignore=truefalse -- This option is used to specify how to handle non-numeric data. If ignore is set to true all non-numeric items in X will be ignored.

Examples

withStatistics:

Aseqsini,i=1..100:

BWeightedMovingAverageA,0.3,0.5,0.2:

LineChartA,B

See Also

Statistics

Statistics[DataSmoothing]

Statistics[ExponentialSmoothing]

Statistics[MovingAverage]