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 380:<br />

Name Data Type Default Value Description<br />

OPTIMAL_METHOD Integer 1 (for Weibull distribution)<br />

Estimation method:<br />

0 (for other distributions)<br />

●<br />

●<br />

0: Maximum likelihood<br />

1: Median rank (only for<br />

Weibull distribution)<br />

Note<br />

For Gamma or Weibull distribution, you can specify the start values of parameters for optimization. If the<br />

start values are not specified, the algorithm will calculate them automatically.<br />

Output Tables<br />

Table 381:<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 />

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

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

CREATE TYPE <strong>PAL</strong>_DISTRFIT_DATA_T AS TABLE("DATACOL" DOUBLE);<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 />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100)<br />

);<br />

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

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

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

"VALUE" VARCHAR(50)<br />

);<br />

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

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

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

506 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!