how to generate a uniform distribution with an constraint
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear fellows,
I want to do a simulation. There are two variables c1 and c2. And they satisfy a function f(c1,c2)=constant. Assuming c1 and c2 are uniformally distributed along the function f(c1,c2)=constant, how can I realize this?
Cheers, X
0 comentarios
Respuesta aceptada
Iain
el 30 de Jul. de 2013
Rearrange the function into the form:
c2 = g(c1,constant),
Randomly generate c1, and simply calculate c2, based on the constant you know.
Más respuestas (0)
Ver también
Categorías
Más información sobre Wavelet Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!