fann_sys::fann_type [] [src]

type fann_type = c_float;

fann_type is the type used for the weights, inputs and outputs of the neural network. In the Rust bindings, it is currently always defined as c_float.

In the FANN C library, fann_type is defined as a:

  • float - if you include fann.h or floatfann.h
  • double - if you include doublefann.h
  • int - if you include fixedfann.h (please be aware that fixed point usage is only to be used during execution, and not during training).