annotate trunk/aid/misc.d @ 3:314d68bafeff

Backprop and backprop_test added (no testing).
author revcompgeek
date Fri, 11 Apr 2008 18:12:55 -0600
parents
children 810d58835f86
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
1 module aid.misc;
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
2
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
3 import std.random;
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
4
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
5 class InputException : Exception {
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
6 this(char[] message){
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
7 super(message);
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
8 }
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
9 }
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
10
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
11 double rnd(){ // The function that should be included in every math library!
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
12 return (cast(double)rand())/uint.max;
314d68bafeff Backprop and backprop_test added (no testing).
revcompgeek
parents:
diff changeset
13 }