I hereby claim:
- I am jandupal on github.
- I am jandupal (https://keybase.io/jandupal) on keybase.
- I have a public key ASACU-t4YA_nzvF4PW-g4KBpeC7Cl8lm3-rGD6A7N5rAQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$:.unshift("lib") | |
require "genetics" | |
require "pp" | |
class Resist < Tree | |
TARGET = 215 | |
literals [50, 100, 500] | |
function(:para) { |a,b| (a*b)/(a+b) } |
size :: [Double] -> Double | |
size = sqrt . sum . map (**2) | |
add :: [Double] -> [Double] -> [Double] | |
add = zipWith (+) | |
normalize :: [Double] -> [Double] | |
normalize a = map (/ size a) a | |
interpolate :: [Double] -> [Double] -> [Double] |