MCPcopy Create free account
hub / github.com/Notgnoshi/generative / run

Method run

generative/dla.rs:100–105  ·  view source on GitHub ↗

Add the specified number of particles to the model.

(&mut self, particles: usize)

Source from the content-addressed store, hash-verified

98
99 /// Add the specified number of particles to the model.
100 pub fn run(&mut self, particles: usize) {
101 tracing::debug!("Adding {particles} particles");
102 for _ in 0..particles {
103 self.add_particle();
104 }
105 }
106
107 /// Add a single particle to the DLA model.
108 fn add_particle(&mut self) {

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

add_particleMethod · 0.80

Tested by

no test coverage detected