init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

23
backprop/synapse.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef _SYNAPSE_H
#define _SYNAPSE_H
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <fstream>
#include "global.h"
using namespace std;
class Synapse{
private:
double weight;
public:
Synapse(const double w=0.0);
double getWeight() const;
void setWeight(const double w);
void operator =(const double w);
Synapse& operator =(const Synapse& s);
void setRandomWeight();
friend ostream& operator<<(ostream& os,const Synapse &s);
istream& operator >>(double d);
};
#endif