Crate liba

Source
Expand description

An algorithm library based on C/C++

§Installation

Add this to your Cargo.toml:

[dependencies]
liba = "0.1"

Modules§

fuzzy
fuzzy PID controller operator
mf
membership function

Structs§

crc8
Cyclic Redundancy Check for 8 bits
crc16
Cyclic Redundancy Check for 16 bits
crc32
Cyclic Redundancy Check for 32 bits
crc64
Cyclic Redundancy Check for 64 bits
hpf
High Pass Filter
lpf
Low Pass Filter
pid
proportional integral derivative controller
pid_fuzzy
fuzzy proportional integral derivative controller
pid_neuro
single neuron proportional integral derivative controller
regress_simple
simple linear regression
tf
transfer function
trajbell
bell-shaped velocity trajectory
trajpoly3
cubic polynomial trajectory
trajpoly5
quintic polynomial trajectory
trajpoly7
hepta polynomial trajectory
trajtrap
trapezoidal velocity trajectory
version
version

Functions§

f32_rsqrt
reciprocal of square-root, \frac{1}{\sqrt{x}}
f64_rsqrt
reciprocal of square-root, \frac{1}{\sqrt{x}}
float_mean
calculate the mean of a float array
float_sum
calculate the sum of a float array
float_sum1
calculate the absolute sum of a float array
float_sum2
calculate the sum of squares of a float array
hash_bkdr
a hash function whose prime number is 131
hash_sdbm
a hash function whose prime number is 65599
u32_sqrt
square root of an unsigned integer
u64_sqrt
square root of an unsigned integer

Type Aliases§

c_int
Equivalent to C’s signed int (int) type.
c_uint
Equivalent to C’s unsigned int type.
float
floating-point number stored using f64