(x: f64, y: f64)
| 11 | use std::rc::Rc; |
| 12 | |
| 13 | fn pdf(x: f64, y: f64) -> f64 { |
| 14 | const SDX: f64 = 0.1; |
| 15 | const SDY: f64 = 0.1; |
| 16 | const A: f64 = 5.0; |
| 17 | let x = x / 10.0; |
| 18 | let y = y / 10.0; |
| 19 | A * (-x * x / 2.0 / SDX / SDX - y * y / 2.0 / SDY / SDY).exp() |
| 20 | } |
| 21 | |
| 22 | struct MainViewer { |
| 23 | figure: Entity<PlottersDrawAreaViewer>, |
nothing calls this directly
no outgoing calls
no test coverage detected