Skip to content

Instantly share code, notes, and snippets.

@aybabtme
Created November 7, 2013 21:55
Show Gist options
  • Save aybabtme/7362516 to your computer and use it in GitHub Desktop.
Save aybabtme/7362516 to your computer and use it in GitHub Desktop.
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