PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The DBMS_STAT_FUNCS package provides statistical functions.
This chapter contains the following topic:
This procedure tests how well a sample of values fits an exponential distribution.
DBMS_STAT_FUNCS.EXPONENTIAL_DIST_FIT ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, test_type IN VARCHAR2 DEFAULT 'KOLMOGOROV_SMIRNOV', lambda IN NUMBER, mu IN NUMBER, sig OUT NUMBER);
This procedure tests how well a sample of values fits a normal distribution.
DBMS_STAT_FUNCS.NORMAL_DIST_FIT ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, test_type IN VARCHAR2 DEFAULT 'SHAPIRO_WILKS', mean IN NUMBER, stdev IN NUMBER, sig OUT NUMBER);
This procedure tests how well a sample of values fits a Poisson distribution.
DBMS_STAT_FUNCS.POISSON_DIST_FIT ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, test_type IN VARCHAR2 DEFAULT 'KOLMOGOROV_SMIRNOV', lambda IN NUMBER, sig OUT NUMBER);
This procedure summarizes the numerical column specified in the columnname
of tablename
. The summary is returned as a Summary Type. Note that most of the output of SUMMARY
can be obtained with currently available SQL.
DBMS_STAT_FUNCS.SUMMARY ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, sigma_value IN NUMBER DEFAULT 3, s OUT SummaryType);
TYPE n_arr IS VARRAY(5) of NUMBER; TYPE num_table IS TABLE of NUMBER; TYPE summaryType IS RECORD ( count NUMBER, min NUMBER, max NUMBER, range NUMBER, mean NUMBER, cmode num_table, variance NUMBER, stddev NUMBER, quantile_5 NUMBER, quantile_25 NUMBER, median NUMBER, quantile_75 NUMBER, quantile_95 NUMBER, plus_x_sigma NUMBER, minus_x_sigma NUMBER, extreme_values num_table, top_5_values n_arr, bottom_5_values n_arr);
This procedure tests well a sample of values fits a uniform distribution.
DBMS_STAT_FUNCS.UNIFORM_DIST_FIT ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, var_type IN VARCHAR2 DEFAULT 'CONTINUOUS', test_type IN VARCHAR2 DEFAULT 'KOLMOGOROV_SMIRNOV', paramA IN NUMBER, paramB IN NUMBER, sig OUT NUMBER);
This procedure tests how well a sample of values fits a Weibull distribution.
DBMS_STAT_FUNCS.WEIBULL_DIST_FIT ( ownername IN VARCHAR2, tablename IN VARCHAR2, columnname IN VARCHAR2, test_type IN VARCHAR2 DEFAULT 'KOLMOGOROV_SMIRNOV', alpha IN NUMBER, mu IN NUMBER, beta IN NUMBER, sig OUT NUMBER);