Advertisement
Guest User

Untitled

a guest
Jul 28th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. getCorePoints   :: ([Double] -> [Double] -> Double) -> [[Double]] -> Double -> Int -> [Int]
  2. getCorePoints dist dataset eps minPts = [ head k | k <- [ (toInteger . head) x | x <- dataset, y <- dataset, dist (tail x) (tai    l y) <= eps], length k >= minPts]
  3.    
  4.    Couldn't match expected type ‘t0 a0’ with actual type ‘Integer’
  5.    In the first argument of ‘length’, namely ‘k’
  6.    In the first argument of ‘(>=)’, namely ‘length k’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement