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.

Optional Parameters<br />

The following parameters are optional. If a parameter is not specified, <strong>PAL</strong> will use its default value.<br />

Table 301:<br />

Name Data Type Default Value Description<br />

METHOD Integer 1 ● 1: MK test<br />

●<br />

2: Difference-sign test<br />

ALPHA Double 0.05 Tolerance probability for MK<br />

test. The value range is<br />

(0,0.5).<br />

Output Tables<br />

Table 302:<br />

Table Column Column Data Type Description<br />

Trend 1st column Integer Indicator of trend:<br />

●<br />

●<br />

●<br />

1: Upward<br />

-1: Downward<br />

0: No trend<br />

De-trended Series 1st column Integer Time periods that are monotonically<br />

increasing<br />

sorted.<br />

2nd column Integer or double The corresponding detrended<br />

time series.<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>_TSTREND_DATA_T;<br />

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

"PERIOD" INTEGER,<br />

"SERIES" DOUBLE<br />

);<br />

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

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

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

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100)<br />

);<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 425

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

Saved successfully!

Ooh no, something went wrong!