nk 1.0.0
C++ Numerical Computing Runtime
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
15namespace nk::stats {
16
19
20
45std::tuple<Value, Value, Value, Value>
46classify(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
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
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,...