S
Svenn Are Bjerkem
Guest
Hi,
I wanted to write a function to extract the envelope of a monte carlo
simulation.
Pseudo code:
Output of circuit is Y(f)
Final table is ymax(f) maximum at a given freq
Final table is ymin(f) minimum at a given freq
for each run in montecarlo run
for each frequency of run
check if Y(f) < ymin(f) or Y(f) > ymax(f)
store/replace ymin(f) or ymax(f) with Y(f) if true
end
end
end
After this run I am supposed to have two tables ymin(f) and ymax(f) that
are waveforms describing the lowest and highest values at each frequency.
My problem is that
value(VF("/aol2_outp") 'montecarlo 1.0)
returns a wave object and not a list because ocean also wants to return
the temperature. With ocnPrint() I get some descriptive text at the
beginning which I have to filter away.
Is there somewhere an ocean command that will return a list like
(f1 y1 f2 y2 f3 y3 ... fn yn)
that I have overseen?
--
Svenn
I wanted to write a function to extract the envelope of a monte carlo
simulation.
Pseudo code:
Output of circuit is Y(f)
Final table is ymax(f) maximum at a given freq
Final table is ymin(f) minimum at a given freq
for each run in montecarlo run
for each frequency of run
check if Y(f) < ymin(f) or Y(f) > ymax(f)
store/replace ymin(f) or ymax(f) with Y(f) if true
end
end
end
After this run I am supposed to have two tables ymin(f) and ymax(f) that
are waveforms describing the lowest and highest values at each frequency.
My problem is that
value(VF("/aol2_outp") 'montecarlo 1.0)
returns a wave object and not a list because ocean also wants to return
the temperature. With ocnPrint() I get some descriptive text at the
beginning which I have to filter away.
Is there somewhere an ocean command that will return a list like
(f1 y1 f2 y2 f3 y3 ... fn yn)
that I have overseen?
--
Svenn