PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Namespaces | Enumerations | Functions
kernel_function_types.hpp File Reference

Defines an enumeration holding all possible kernel function types. More...

#include "plssvm/detail/assert.hpp"
#include "plssvm/detail/operators.hpp"
#include "plssvm/detail/type_traits.hpp"
#include "plssvm/detail/utility.hpp"
#include "plssvm/exceptions/exceptions.hpp"
#include <cmath>
#include <iosfwd>
#include <vector>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 plssvm
 The main namespace containing all public API functions.
 
 plssvm::detail
 Namespace containing implementation details. Should not directly be used by users.
 

Enumerations

enum class  plssvm::kernel_function_type { plssvm::linear = 0 , plssvm::polynomial = 1 , plssvm::rbf = 2 }
 Enum class for all implemented kernel functions. More...
 

Functions

std::ostream & plssvm::operator<< (std::ostream &out, kernel_function_type kernel)
 Output the kernel type to the given output-stream out. More...
 
std::string_view plssvm::kernel_function_type_to_math_string (kernel_function_type kernel) noexcept
 Return the mathematical representation of the kernel_type kernel. More...
 
std::istream & plssvm::operator>> (std::istream &in, kernel_function_type &kernel)
 Use the input-stream in to initialize the kernel type. More...
 
template<kernel_function_type kernel, typename real_type , typename... Args>
real_type plssvm::kernel_function (const std::vector< real_type > &xi, const std::vector< real_type > &xj, Args &&...args)
 Computes the value of the two vectors xi and xj using the kernel function determined at compile-time. More...
 
template<typename real_type >
real_type plssvm::kernel_function (const std::vector< real_type > &xi, const std::vector< real_type > &xj, const detail::parameter< real_type > &params)
 Computes the value of the two vectors xi and xj using the kernel function and kernel parameter stored in params. More...
 

Detailed Description

Defines an enumeration holding all possible kernel function types.

Author
Alexander Van Craen
Marcel Breyer
License
This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.