nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
Loading...
Searching...
No Matches
lda.hpp
Go to the documentation of this file.
1
3
// toolboxes/stats/include/nk/stats/lda/lda.hpp
4
//
5
// Linear / Quadratic Discriminant Analysis — function form.
6
7
#pragma once
8
9
#include <memory_resource>
10
#include <nk/value/value.hpp>
11
12
#include <string>
13
#include <tuple>
14
15
namespace
nk::stats {
16
19
20
45
std::tuple<Value, Value, Value, Value>
46
classify
(
const
Value
&sample,
const
Value
&training,
const
Value
&group,
47
const
std::string &type,
48
std::pmr::memory_resource *mr =
nullptr
);
49
50
52
}
// namespace nk::stats
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::stats::classify
std::tuple< Value, Value, Value, Value > classify(const Value &sample, const Value &training, const Value &group, const std::string &type, std::pmr::memory_resource *mr=nullptr)
Classify samples via LDA / QDA ([c, err, posterior, logp] = classify(sample, training,...
src
toolboxes
stats
include
nk
stats
lda
lda.hpp
Generated by
1.17.0