KDTree further formatting review and typos
parent
21270d9f5c
commit
8381580885
@ -1,27 +1,31 @@
|
||||
FluidKDTree : FluidManipulationClient {
|
||||
|
||||
var id;
|
||||
var id;
|
||||
|
||||
*new {|server|
|
||||
var uid = UniqueID.next;
|
||||
^super.new(server,uid)!?{|inst|inst.init(uid);inst}
|
||||
}
|
||||
*new {|server|
|
||||
var uid = UniqueID.next;
|
||||
^super.new(server,uid)!?{|inst|inst.init(uid);inst}
|
||||
}
|
||||
|
||||
init {|uid|
|
||||
id = uid;
|
||||
}
|
||||
init {|uid|
|
||||
id = uid;
|
||||
}
|
||||
|
||||
fit{|dataset,action|
|
||||
fit{|dataset,action|
|
||||
dataset.asSymbol.postln;
|
||||
this.prSendMsg(\fit,[dataset.asSymbol],action);
|
||||
}
|
||||
this.prSendMsg(\fit, [dataset.asSymbol], action);
|
||||
}
|
||||
|
||||
kNearest{ |buffer, k,action|
|
||||
this.prSendMsg(\kNearest,[buffer.asUGenInput,k],action,k.collect{string(FluidMessageResponse,_,_)});
|
||||
}
|
||||
|
||||
kNearestDist { |buffer, k,action|
|
||||
this.prSendMsg(\kNearestDist,[buffer.asUGenInput,k],action,[numbers(FluidMessageResponse,_,k,_)]);
|
||||
}
|
||||
kNearest{ |buffer, k,action|
|
||||
this.prSendMsg(\kNearest,
|
||||
[buffer.asUGenInput,k], action,
|
||||
k.collect{string(FluidMessageResponse,_,_)}
|
||||
);
|
||||
}
|
||||
|
||||
kNearestDist { |buffer, k,action|
|
||||
this.prSendMsg(\kNearestDist, [buffer.asUGenInput,k], action,
|
||||
[numbers(FluidMessageResponse,_,k,_)]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue