Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (48 sloc) 1.72 KB
// Accord Statistics Library
// The Accord.NET Framework
// http://accord-framework.net
//
// Copyright © César Souza, 2009-2017
// cesarsouza at gmail.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
namespace Accord.Statistics.Models.Regression.Linear
{
using System;
/// <summary>
/// Common interface for Linear Regression Models.
/// </summary>
///
/// <remarks>
/// <para>
/// This interface specifies a common interface for querying
/// a linear regression model.</para>
/// <para>
/// Since a closed-form solution exists for fitting most linear
/// models, each of the models may also implement a Regress method
/// for computing actual regression.</para>
/// </remarks>
///
[Obsolete("Please use ITransform instead.")]
public interface ILinearRegression
{
/// <summary>
/// Computes the model output for a given input.
/// </summary>
///
double[] Compute(double[] inputs);
}
}