25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 297:<br />

Name Data Type Default Value Description<br />

ALPHA Double 0.2 The threshold for the autocorrelation<br />

coefficient. The<br />

value range is (0,1].<br />

Output Tables<br />

Table 298:<br />

Table Column Column Data Type Description<br />

Seasonality 1st column Integer Cycle length of seasonality (1<br />

for no-seasonality).<br />

2nd column Varchar or nvarchar Seasonality mode. The values<br />

are "additive", "multiplicative",<br />

or "no-seasonality".<br />

Random 1st column Integer Time periods that are monotonically<br />

increasing<br />

sorted.<br />

2nd column Double The random component.<br />

Example<br />

Assume that:<br />

●<br />

●<br />

●<br />

DM_<strong>PAL</strong> is a schema belonging to USER1; and<br />

USER1 has been assigned the AFLPM_CREATOR_ERASER_EXECUTE role; and<br />

USER1 has been assigned the AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE or<br />

AFL__SYS_AFL_AFL<strong>PAL</strong>_EXECUTE_WITH_GRANT_OPTION role.<br />

SET SCHEMA DM_<strong>PAL</strong>;<br />

DROP TYPE <strong>PAL</strong>_TSSEASONALITY_DATA_T;<br />

CREATE TYPE <strong>PAL</strong>_TSSEASONALITY_DATA_T AS TABLE(<br />

"PERIOD" INTEGER,<br />

"SERIES" DOUBLE<br />

);<br />

DROP TYPE <strong>PAL</strong>_TSSEASONALITY_CONTROL_T;<br />

CREATE TYPE <strong>PAL</strong>_TSSEASONALITY_CONTROL_T AS TABLE(<br />

"NAME" VARCHAR(100),<br />

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100)<br />

);<br />

DROP TYPE <strong>PAL</strong>_TSSEASONALITY_SEASONALITY_T;<br />

CREATE TYPE <strong>PAL</strong>_TSSEASONALITY_SEASONALITY_T AS TABLE(<br />

"CYCLE" INTEGER,<br />

"MODE" VARCHAR(100)<br />

);<br />

DROP TYPE <strong>PAL</strong>_TSSEASONALITY_RANDOM_T;<br />

CREATE TYPE <strong>PAL</strong>_TSSEASONALITY_RANDOM_T AS TABLE(<br />

"PERIOD" INTEGER,<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions P U B L I C 419

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!