method definition for bruteforce knearest (#144)

nix
tremblap 3 years ago committed by GitHub
parent 339fad944d
commit 1999c64ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,4 +101,13 @@ FluidDataSet : FluidDataObject
actions[\getIds] = [nil,action];
this.prSendMsg(this.getIdsMsg(labelSet));
}
kNearestMsg{|buffer,k|
^this.prMakeMsg(\kNearest,id, this.prEncodeBuffer(buffer),k);
}
kNearest{ |buffer, k, action|
actions[\kNearest] = [strings(FluidMessageResponse,_,_),action];
this.prSendMsg(this.kNearestMsg(buffer,k));
}
}

Loading…
Cancel
Save