blob: bcff2c3e279486fe794625db7f6dccf13ba808ad [file] [log] [blame]
/* ----------------------------------------------------------------------- *//**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*//* ----------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
* Test one-sample t-test.
*
* Example ("ZARR13.DAT") taken from:
* http://www.itl.nist.gov/div898/handbook/eda/section3/eda352.htm
* -------------------------------------------------------------------------- */
CREATE TABLE ZARR13 (
id SERIAL,
value FLOAT8
);
COPY ZARR13(value) FROM stdin;
9.206343
9.299992
9.277895
9.288454
9.216746
9.274107
9.273776
\.
CREATE TABLE t_test_one AS
SELECT (t_test_one(value - 5.0)).* FROM zarr13;