Try to search your question here, if you can't find : Ask Any Question Now ?

How do I find the Average of a List of Coordinate Tuples in Haskell?

HomeCategory: stackoverflowHow do I find the Average of a List of Coordinate Tuples in Haskell?
Avatarrupesh asked 4 months ago

How do I add a list of tuples in Haskell which represent x and y coordinates and then find the average of all the x values and y values (basically trying to find a centroid).

So lets say I had an input list of [(1,1),(2,2),(3,6)] and I want the output to be (2,3).

1 Answers
Best Answer
AvatarJyoti answered 4 months ago
Your Answer

3 + 2 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com