Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/LibSVM/IRangeTransform.cs @ 2385

Last change on this file since 2385 was 1819, checked in by mkommend, 15 years ago

created new project for LibSVM source files (ticket #619)

File size: 1.5 KB
Line 
1/*
2 * SVM.NET Library
3 * Copyright (C) 2008 Matthew Johnson
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20namespace SVM
21{
22    /// <remarks>
23    /// Interface implemented by range transforms.
24    /// </remarks>
25    public interface IRangeTransform
26    {
27        /// <summary>
28        /// Transform the input value using the transform stored for the provided index.
29        /// </summary>
30        /// <param name="input">Input value</param>
31        /// <param name="index">Index of the transform to use</param>
32        /// <returns>The transformed value</returns>
33        double Transform(double input, int index);
34        /// <summary>
35        /// Transforms the input array.
36        /// </summary>
37        /// <param name="input">The array to transform</param>
38        /// <returns>The transformed array</returns>
39        Node[] Transform(Node[] input);
40    }
41}
Note: See TracBrowser for help on using the repository browser.