how to code probability in general??
Mostrar comentarios más antiguos
Suppose I have a matrix A=magic(2).
1) Each entry mutates with probability p. 2) If such mutation does occur, then with probability (1-q) a random integer between 1 and 2^2 is selected as the new value and replaces the old value.
How would I code this? I've been thinking about this for a while but I cannot come up with anything! Like, I would love to provide at least what I have so far but I haven't gotten a single clue.
Can this be coded even? At this stage it feels like it cannot be.. Thanks a lot in advance, any help is very much appreciated.
3 comentarios
Walter Roberson
el 15 de Abr. de 2013
If it does mutate (probability p) but does not fall into the (1-q) case, then what should happen?
Walter Roberson
el 15 de Abr. de 2013
Edgaris Rhomer
el 15 de Abr. de 2013
Editada: Edgaris Rhomer
el 15 de Abr. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Performance and Memory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!