unda 0.2.2

General purpose machine learning crate for neural network development and analysis
Documentation
1
2
3
4
5
6
7
use std::{ops::Range};

pub fn gen_noise(n: f32, x: usize) -> Range<f32> {
    //let max = f32::abs(f32::log(-n * f32::atan(x as f32) + (n * PI)/2.0, 0.9));
    let max = 1.0 / (n * x as f32);
    -max..max
}