NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
FgIsomap.h
1
11#pragma once
12
13#include <MachineLearning/IEmbed.h>
14
15namespace NeuralEngine
16{
17 namespace MachineLearning
18 {
86 class NE_IMPEXP Isomap : public IEmbed
87 {
88 public:
89
97 Isomap(int numNeighbours);
98
105
116 af::array Compute(af::array& M, int q);
117
118 private:
119 struct Xstruct
120 {
121 af::array index;
122 std::vector<af::array> coords;
123 };
124
125 Xstruct isomap(af::array& D, int n_size, int q);
126 af::array L2_distance(af::array& a, af::array& b, bool df);
127
128 int _numNeighbours;
129 };
130 }
131}
af::array Compute(af::array &M, int q)
Solves.
Isomap(int numNeighbours)
Constructor.