I would like to make my own fitness function, analyzing simulation runs, as HOC code. What is the best way to do this-- as a run fitter, or function fitter, and what are the details to do this?
Thanks,
Tom
HOC run/function fitness
With help from Michael, I can answer my own post which may be useful for others.
What I needed out of the MRF was a "Fitness Primitive". With that, I can give it the expression "myfun()"
A skeleton function fitness hoc file can be loaded with the following:
What I needed out of the MRF was a "Fitness Primitive". With that, I can give it the expression "myfun()"
A skeleton function fitness hoc file can be loaded with the following:
Code: Select all
objref vec
vec=new Vector()
func myfun() {
vec.record($soma.v(0.5))
init()
run()
// Do whatever analysis on vec
err=AnalysisOnVec(vec)
return err
}