Expand description
An algorithm library based on C/C++
§Installation
Add this to your Cargo.toml
:
[dependencies]
liba = "0.1"
Modules§
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