How to distinguish family of waves in ocean?

Guest
I'm just finished writing an ocean analysis procedure in ocean that
takes in a waveform and spits out an integer. I would now like to make
the procedure work seemlessly in the Monte Carlo environment. I believe
I need to add code to distinguish between inputs that contain multiple
simulation results and simple waves. Is there a way in ocean to
determine if a wave object is a family of waves or not?

And if the object is a family, is there a way to determine if it
contains a number of iterations, or if it contains the results of a
parametric sweep?

One final question. Once I get this code put together, is there a way
to add it to the waveform calculator special function list?
 
tk_riehle@yahoo.com wrote:
I'm just finished writing an ocean analysis procedure in ocean that
takes in a waveform and spits out an integer. I would now like to make
the procedure work seemlessly in the Monte Carlo environment. I believe
I need to add code to distinguish between inputs that contain multiple
simulation results and simple waves. Is there a way in ocean to
determine if a wave object is a family of waves or not?

And if the object is a family, is there a way to determine if it
contains a number of iterations, or if it contains the results of a
parametric sweep?

One final question. Once I get this code put together, is there a way
to add it to the waveform calculator special function list?
Dear tk,

is it a float or and integer ? numberp(x)
is it a waveform ? drIsWaveform(x)
is it a wave family ? famIsFamily(x)
....no ! It's bicycle repair man ! ;)

So you can write your function like this
procedure(yourfunc(x arg1 arg2)
cond(
(drIsWaveform(x) dostuff(x arg1 arg2))
(famIsFamily(x) famMap('yourfunc x arg1 arg2))
(t info("Oooh! it's bicycle repairman !\n") )
)
)

For the last question, you can RTFM with these keywords:
calCreateSpecialFunction() calRegisterSpecialFunction()
 

Welcome to EDABoard.com

Sponsor

Back
Top