Skip to content
Snippets Groups Projects
Commit 06bb886f authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Some code I want to put back later.

parent 1b2c6cb9
Branches
No related tags found
No related merge requests found
// altnewx is not used at the moment, but I will build a switch for it.
// It is like newx, but moves all n dimensions a bit.
func alt_newx(xold []float32, xT []float32, rand *rand.Rand, xDlta float32) {
for i, x := range xold {
t := 2.*rand.Float32() - 1
t *= xDlta
xT[i] = x + t
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment