Class: Pso::Function
- Inherits:
-
Object
- Object
- Pso::Function
- Defined in:
- lib/pso/function.rb
Instance Method Summary collapse
Instance Method Details
#f(vector) ⇒ Object
5 6 7 |
# File 'lib/pso/function.rb', line 5 def f(vector) vector.magnitude end |