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.

If method is 7 and SAMPLING_SIZE is 8:<br />

If method is 0 and PERCENTAGE is 0.1:<br />

Example 2<br />

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

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

CREATE TYPE <strong>PAL</strong>_SAMPLING_DATA_T<br />

AS TABLE<br />

(<br />

"EMPNO"<br />

INT,<br />

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

"DEP"<br />

VARCHAR(50),<br />

"LOC"<br />

INT,<br />

"INCOME" DOUBLE<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_CONTROL_T<br />

AS TABLE<br />

(<br />

"NAME"<br />

VARCHAR(50),<br />

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR(100)<br />

);<br />

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

CREATE TYPE <strong>PAL</strong>_SAMPLING_RESULT_T<br />

AS TABLE<br />

(<br />

"RESULT_EMPNO"<br />

INT,<br />

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

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

"RESULT_LOC" INT,<br />

"RESULT_INCOME" DOUBLE<br />

);<br />

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