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 PID controller operator
  • membership function

Structs§

  • Cyclic Redundancy Check for 8 bits
  • Cyclic Redundancy Check for 16 bits
  • Cyclic Redundancy Check for 32 bits
  • Cyclic Redundancy Check for 64 bits
  • High Pass Filter
  • Low Pass Filter
  • proportional integral derivative controller
  • fuzzy proportional integral derivative controller
  • single neuron proportional integral derivative controller
  • simple linear regression
  • transfer function
  • bell-shaped velocity trajectory
  • cubic polynomial trajectory
  • quintic polynomial trajectory
  • hepta polynomial trajectory
  • trapezoidal velocity trajectory
  • version

Functions§

  • reciprocal of square-root, \frac{1}{\sqrt{x}}
  • reciprocal of square-root, \frac{1}{\sqrt{x}}
  • calculate the mean of a float array
  • calculate the sum of a float array
  • calculate the absolute sum of a float array
  • calculate the sum of squares of a float array
  • a hash function whose prime number is 131
  • a hash function whose prime number is 65599
  • square root of an unsigned integer
  • square root of an unsigned integer

Type Aliases§

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