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.

INSERT INTO <strong>PAL</strong>_PCA_DATA_TBL VALUES (7, 22, 56, 26, 55, 58, 27);<br />

INSERT INTO <strong>PAL</strong>_PCA_DATA_TBL VALUES (8, 17, 52, 21, 45, 52, 17);<br />

INSERT INTO <strong>PAL</strong>_PCA_DATA_TBL VALUES (9, 15, 53, 24, 45, 53, 18);<br />

INSERT INTO <strong>PAL</strong>_PCA_DATA_TBL VALUES (10, 23, 54, 23, 53, 57, 24);<br />

INSERT INTO <strong>PAL</strong>_PCA_DATA_TBL VALUES (11, 25, 54, 23, 55, 58, 25);<br />

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL (<br />

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

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100));<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('SCALING', 1, NULL, NULL);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('SCORES', 1, NULL, NULL);<br />

CREATE COLUMN TABLE <strong>PAL</strong>_PCA_LOADINGS_TBL LIKE <strong>PAL</strong>_PCA_LOADINGS_T;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_PCA_LOADINGS_INFO_TBL LIKE <strong>PAL</strong>_PCA_LOADINGS_INFO_T;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_PCA_SCORES_TBL LIKE <strong>PAL</strong>_PCA_SCORES_T;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_PCA_SCALING_INFO_TBL LIKE <strong>PAL</strong>_PCA_SCALING_INFO_T;<br />

CALL DM_<strong>PAL</strong>.<strong>PAL</strong>_PCA_PROC(<strong>PAL</strong>_PCA_DATA_TBL,"#<strong>PAL</strong>_CONTROL_TBL",<br />

<strong>PAL</strong>_PCA_LOADINGS_TBL, <strong>PAL</strong>_PCA_LOADINGS_INFO_TBL, <strong>PAL</strong>_PCA_SCORES_TBL,<br />

<strong>PAL</strong>_PCA_SCALING_INFO_TBL) WITH OVERVIEW;<br />

SELECT * FROM <strong>PAL</strong>_PCA_LOADINGS_TBL;<br />

SELECT * FROM <strong>PAL</strong>_PCA_LOADINGS_INFO_TBL;<br />

SELECT * FROM <strong>PAL</strong>_PCA_SCORES_TBL;<br />

SELECT * FROM <strong>PAL</strong>_PCA_SCALING_INFO_TBL;<br />

Expected Result<br />

<strong>PAL</strong>_PCA_LOADINGS_TBL:<br />

<strong>PAL</strong>_PCA_LOADINGS_INFO_TBL:<br />

<strong>PAL</strong>_PCA_SCORES_TBL:<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 461

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

Saved successfully!

Ooh no, something went wrong!