    001/*
    002 * Copyright (c) 2009 The openGion Project.
    003 *
    004 * Licensed under the Apache License, Version 2.0 (the "License");
    005 * you may not use this file except in compliance with the License.
    006 * You may obtain a copy of the License at
    007 *
    008 *     http://www.apache.org/licenses/LICENSE-2.0
    009 *
    010 * Unless required by applicable law or agreed to in writing, software
    011 * distributed under the License is distributed on an "AS IS" BASIS,
    012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
    013 * either express or implied. See the License for the specific language
    014 * governing permissions and limitations under the License.
    015 */
    016package org.opengion.penguin.math.statistics;
    017
    018/**
    019 * 与える配列が{x,y}の組み合わせの、単回帰系回帰処理用のインターフェースです。
    020 */
    021public interface HybsRegression {
    022
    023        /**
    024         * 回帰式の係数を配列で返します。
    025         *
    026         * @return 係数配列
    027         *
    028         */
    029        double[] getCoefficient();
    030
    031        /**
    032         * 決定係数の取得。
    033         *
    034         * @return 決定係数
    035         */
    036        double getRSquare();
    037
    038        /**
    039         * 回帰式f(x)を計算して返す。
    040         *
    041         * @param in_x 必要な大きさの変数配列
    042         * @return 計算結果
    043         */
    044        double predict( final double... in_x ) ;
    045
    046}