Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(j in seq_along(nums)){
- d = dist(nums[j], average)
- print("nums[j]")
- print(nums[j])
- print("dist:")
- print(d)
- if(farthest < d){
- print("farthest = true")
- farthest <- nums[j]
- }
- }
- print("farthest")
- print(farthest)
- nums <- c(224, 352, 320, 352, 352, 352, 223)
Add Comment
Please, Sign In to add comment