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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 384:<br />

Name Data Type Description<br />

DISTRIBUTIONNAME Varchar Distribution name:<br />

●<br />

Weibull<br />

Optional Parameter<br />

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

Table 385:<br />

Name Data Type Default Value Description<br />

OPTIMAL_METHOD Integer 0 Estimation method:<br />

●<br />

●<br />

0: Maximum likelihood<br />

1: Median rank (only for<br />

weibull distribution)<br />

Output Tables<br />

Table 386:<br />

Table Column Column Data Type Description<br />

Result 1st column Varchar or nvarchar Name of distribution parameters<br />

2nd column Varchar or nvarchar Value of distribution parameters<br />

Statistics 1st column Varchar or nvarchar Name of statistics<br />

2nd column Double Value of statistics<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 />

Example 1: Median Rank Estimation Method<br />

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

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

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

"LEFT" DOUBLE,<br />

"RIGHT" DOUBLE<br />

);<br />

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

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

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

"INTARGS" INTEGER,<br />

510 P U B L I C<br />

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

<strong>PAL</strong> Functions

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

Saved successfully!

Ooh no, something went wrong!