mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-22 15:06:47 +01:00
Registered MLPPTransforms into the ClassDB.
This commit is contained in:
parent
a9b30ef75f
commit
e5de2d53f5
@ -10,8 +10,6 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
// DCT ii.
|
||||
// https://www.mathworks.com/help/images/discrete-cosine-transform.html
|
||||
std::vector<std::vector<real_t>> MLPPTransforms::discreteCosineTransform(std::vector<std::vector<real_t>> A) {
|
||||
@ -53,3 +51,6 @@ std::vector<std::vector<real_t>> MLPPTransforms::discreteCosineTransform(std::ve
|
||||
}
|
||||
return B;
|
||||
}
|
||||
|
||||
void MLPPTransforms::_bind_methods() {
|
||||
}
|
||||
|
@ -9,14 +9,19 @@
|
||||
|
||||
#include "core/math/math_defs.h"
|
||||
|
||||
#include "core/object/reference.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class MLPPTransforms : public Reference {
|
||||
GDCLASS(MLPPTransforms, Reference);
|
||||
|
||||
class MLPPTransforms {
|
||||
public:
|
||||
std::vector<std::vector<real_t>> discreteCosineTransform(std::vector<std::vector<real_t>> A);
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
};
|
||||
|
||||
|
||||
#endif /* Transforms_hpp */
|
||||
|
@ -31,6 +31,7 @@ SOFTWARE.
|
||||
#include "mlpp/cost/cost.h"
|
||||
#include "mlpp/regularization/reg.h"
|
||||
#include "mlpp/utilities/utilities.h"
|
||||
#include "mlpp/transforms/transforms.h"
|
||||
|
||||
#include "mlpp/hidden_layer/hidden_layer.h"
|
||||
#include "mlpp/multi_output_layer/multi_output_layer.h"
|
||||
@ -60,6 +61,7 @@ void register_pmlpp_types(ModuleRegistrationLevel p_level) {
|
||||
ClassDB::register_class<MLPPReg>();
|
||||
ClassDB::register_class<MLPPActivation>();
|
||||
ClassDB::register_class<MLPPCost>();
|
||||
ClassDB::register_class<MLPPTransforms>();
|
||||
|
||||
ClassDB::register_class<MLPPHiddenLayer>();
|
||||
ClassDB::register_class<MLPPOutputLayer>();
|
||||
|
Loading…
Reference in New Issue
Block a user