Skip to content

Commit

Permalink
Fixes for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dragly committed Apr 28, 2015
1 parent deb2a39 commit 9509b32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qml/neurons/OldNeuron.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Node {
property alias voltage: engine.voltage
property real acceleration: 0.0
property real speed: 0.0
property alias cm: engine.cm
// property alias cm: engine.cm
// property var outputNeurons: []
property point connectionPoint: Qt.point(x + width / 2, y + height / 2)
property alias synapticConductance: engine.synapticConductance
Expand Down
4 changes: 3 additions & 1 deletion src/engine/receptivefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <cmath>

const static long double pi = 3.141592653589793238462643383279502884L;

ReceptiveField::ReceptiveField()
{
}
Expand Down Expand Up @@ -114,7 +116,7 @@ double ReceptiveField::gaborField(int idx, int idy)
double x = idx * cos(theta) + idy * sin(theta);
double y = -idx * sin(theta) + idy * cos(theta);

double prefactor = 1.0/(2.* M_PI * sigmaX * sigmaY);
double prefactor = 1.0/(2.* pi * sigmaX * sigmaY);
double expFactor = exp(-x*x/(2.* sigmaX * sigmaX) - y*y/(2. * sigmaY * sigmaY));
double cosFactor = cos(k * x - phi);
return prefactor * expFactor * cosFactor;
Expand Down

0 comments on commit 9509b32

Please sign in to comment.