monte carlo histogram data from ocean

Status
Not open for further replies.

JanniS

Newbie level 6
Joined
Oct 22, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,373
Hello

I am working on a ocean script for a monte carlo simulation.

I am simulating an comparator and the output is either high or low. I want to get the hisogram data from the monte carlo simulation in a vector to wrtie to a database. Everything works, but not the histogram data.


Any suggestions?

Thanks
Janni



The monte carlo part of the script looks like this:
Code:
declare( out[2])
monteCarlo( ?numIters "1" ?startIter "1" 
    ?analysisVariation 'mismatch ?sweptParam "None" 
    ?sweptParamVals "27" ?saveData t 
    ?nomRun "yes" ?append nil
    ?saveProcessParams t 
)
monteSelectResults()
monteExpr( "yy" "value(VT(\"/vout\") 1.3e-07)" )

monteRun()
out  = histogram("yy" ?numBins "2" ?density t)
 
Last edited by a moderator:

Thank you for your reply. I read the manual and tried all kind of combinations but without any results. However, I just discovered that it is possible to sweep parameters in the monte carlo GUI setup, which makes my simulations a little less dependent on me

Janni
 

... it is possible to sweep parameters in the monte carlo GUI setup, which makes my simulations a little less dependent on me

... resp. on the complex OCEAN language syntax. Right.
Good luck!
erikl
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…