Struct boolnetevo::Evolver [−][src]
Container of evolution process components.
Implementations
impl Evolver
[src]
pub fn arch(
&mut self,
height: usize,
size: usize,
rands: usize,
layers: usize,
cycles: usize
) -> Result<(), String>
[src]
&mut self,
height: usize,
size: usize,
rands: usize,
layers: usize,
cycles: usize
) -> Result<(), String>
Changes boolnet architecture.
impl Evolver
[src]
pub fn bitran(
&mut self,
register: &BitransformRegister,
id: &str,
prefs: &[usize]
) -> Result<(), String>
[src]
&mut self,
register: &BitransformRegister,
id: &str,
prefs: &[usize]
) -> Result<(), String>
Changes Bitransform to one present in register
or shows all that are there.
impl Evolver
[src]
pub fn dir(&mut self, dir_inp_hex: &str) -> Result<String, String>
[src]
Calculates direct bitstring function of Bitransform for given hex-string input, as hex-string output.
impl Evolver
[src]
pub fn evol(&mut self, epochs: usize) -> Result<(), String>
[src]
Evolves population until any key is pressed (epochs
= 0) or for given number of epochs
.
Outputs to terminal and to log if logging is on.
impl Evolver
[src]
impl Evolver
[src]
pub fn par(&mut self, param: &str, valstr: &str) -> Result<(), String>
[src]
Changes evolution parameter.
impl Evolver
[src]
impl Evolver
[src]
impl Evolver
[src]
pub fn run(&mut self, bn_ind: usize, inp_hex: &str) -> Result<String, String>
[src]
Runs given boolnet with given hex-string input to obtain hex-string output.
impl Evolver
[src]
pub fn save(&self, dirpath: &str) -> Result<(), String>
[src]
Saves evolver to dir.
dirpath
cannot start with "/
" due to safety reasons.
pub fn load(
register: &BitransformRegister,
dirpath: &str
) -> Result<Self, String>
[src]
register: &BitransformRegister,
dirpath: &str
) -> Result<Self, String>
Loads evolver from dir.
impl Evolver
[src]
impl Evolver
[src]
impl Evolver
[src]
pub fn new_default(register: &BitransformRegister) -> Result<Self, String>
[src]
register
must contain at least the entry about default Bitransform, InvXor
.
pub fn shell(&mut self, register: &BitransformRegister) -> Result<(), String>
[src]
Control evolution from basic shell. No history or autocompletion of commands... yet.
Auto Trait Implementations
impl !RefUnwindSafe for Evolver
[src]
impl !Send for Evolver
[src]
impl Sync for Evolver
[src]
impl Unpin for Evolver
[src]
impl !UnwindSafe for Evolver
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,