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