Created
November 7, 2013 21:55
-
-
Save aybabtme/7362516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double[] genVArr(int n, double timeStep, int[] configuration) { | |
double[] output = new double[n]; | |
double currentTime = timeStep; | |
for (int i = 0; i < n; i++) { | |
output[i] = v(currentTime, configuration) | |
currentTime += timeStep; | |
} | |
return output; | |
} | |
double v(double time, int[] configuration) { | |
// compute v at `time` with `configuration` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment