pub struct Muse {
pub generator: PatternGenerator,
pub mutator: MutationEngine,
pub scorer: AestheticScorer,
pub style: StyleTransfer,
}Expand description
The central creativity engine.
Combines pattern generation, mutation, style transfer, and aesthetic scoring into a single creative workflow.
Fields§
§generator: PatternGenerator§mutator: MutationEngine§scorer: AestheticScorer§style: StyleTransferImplementations§
Source§impl Muse
impl Muse
pub fn new(seed: usize, mutation_rate: f64) -> Self
Sourcepub fn with_scoring(
seed: usize,
mutation_rate: f64,
sym_w: f64,
comp_w: f64,
bal_w: f64,
) -> Self
pub fn with_scoring( seed: usize, mutation_rate: f64, sym_w: f64, comp_w: f64, bal_w: f64, ) -> Self
Create a muse with custom aesthetic weights.
Sourcepub fn create_and_evolve(&self, length: usize, generations: usize) -> Pattern
pub fn create_and_evolve(&self, length: usize, generations: usize) -> Pattern
Generate a base pattern and evolve it through mutation cycles. Returns the best-scoring variant found.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Muse
impl RefUnwindSafe for Muse
impl Send for Muse
impl Sync for Muse
impl Unpin for Muse
impl UnsafeUnpin for Muse
impl UnwindSafe for Muse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more