Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved vacant sp elements sanity check to decay function #827

Merged
merged 3 commits into from Oct 13, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+4 −2
Diff settings

Always

Just for now

Next

Moved sanity check to the decay synaptic elements function

  • Loading branch information...
sdiazpier committed Sep 19, 2017
commit 495d9998374631d1a3e62d26df81134902bf90b9
Copy path View file
@@ -172,7 +172,7 @@ class SynapticElement
int
get_z_vacant() const
{
return std::max( std::floor( z_ ) - z_connected_, 0. );
return std::floor( z_ ) - z_connected_;
}
/*
* Retrieves the current number of synaptic elements bound to a synapse
@@ -243,7 +243,9 @@ class SynapticElement
void
decay_z_vacant()
{
z_ -= get_z_vacant() * tau_vacant_;
if(get_z_vacant() > 0){
z_ -= get_z_vacant() * tau_vacant_;
}
}

bool
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.