MCPcopy Create free account
hub / github.com/JakkuSakura/plotters-gpui / pdf

Function pdf

examples/3d-plot2.rs:13–20  ·  view source on GitHub ↗
(x: f64, y: f64)

Source from the content-addressed store, hash-verified

11use std::rc::Rc;
12
13fn 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
22struct MainViewer {
23 figure: Entity<PlottersDrawAreaViewer>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected