Close
Close window
Apply - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

TimeSeriesAnalysis

Apply

apply a transformation

Unapply

unapply a transformation

Calling Sequence

Apply(trafo, timeseries)

Unapply(trafo, forecast)

Parameters

trafo

-

TimeSeries transformation object, such as BoxCoxTransform or Difference

timeseries

-

TimeSeries data set

forecast

-

TimeSeries data set , typically obtained from a forecasting method

Description

The Apply and Unapply commands are used with transformation objects, and are explained on the help pages of these transformation objects.

Transformation objects are created by the Difference and BoxCoxTransform commands. The LogTransform command is a special case of the BoxCoxTransform command.

Examples

>

withTimeSeriesAnalysis:

>

salesTimeSeries150,147,114,113,91,164,56,39,32,86,startdate=2010年01月01日,frequency=weekly,header=Weekly Sales

salesTime seriesWeekly Sales10 rows of data:2010年01月01日 - 2010年03月05日

(1)
>

GetDatasales..4

150.147.114.113.

(2)

Here are the log-transformed data.

>

log_salesApplyLogTransform,sales

log_salesTime seriesLogarithm of Weekly Sales10 rows of data:2010年01月01日 - 2010年03月05日

(3)
>

GetDatalog_sales..4

5.010635294096264.990432586778744.736198448394504.72738781871234

(4)

Reconstructing the original data:

>

originalUnapplyLogTransform,log_sales

originalTime seriesWeekly Sales10 rows of data:2010年01月01日 - 2010年03月05日

(5)
>

GetDataoriginal..4

150.000000000000147.000000000000114.000000000000113.000000000000

(6)

Here are the differences in sales from week to week.

>

differencedApplyDifference,sales

differencedTime seriesWeekly Sales (differenced)9 rows of data:2010年01月08日 - 2010年03月05日

(7)
>

GetDatadifferenced..4

−3.−33.−1.−22.

(8)

Reconstructing the original data (except for the first row):

>

originalUnapplyDifference,differenced

originalTime seriesWeekly Sales9 rows of data:2010年01月08日 - 2010年03月05日

(9)
>

GetDataoriginal..4

147.114.113.91.

(10)

Compatibility

The TimeSeriesAnalysis[Apply] and TimeSeriesAnalysis[Unapply] commands were introduced in Maple 18.

For more information on Maple 18 changes, see Updates in Maple 18 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /