guilhermecasagrandi
Here it is. The setup needs to be rebuilt to be more streamlined, but it works well as it is.
Thanks for this! I've been trying to figure this out too, there's some documentation now but your scene was really useful, and I think I've got something working.
I think as of 20.5 we don't need to calculate the distances, we just need to send a flattened array of whatever we're measuring against into the RBFInterpolation, it seems to figure itself out internally from those values.
For example if it's P, turn the vector into a float array for the target input, and the example points to measure against into another array of floats . If there are 10 example points flattened into 30 floats, and the target is 3 floats, it'll give a result with 10 weights.
Does that make any practical difference to the result? I don't know, I'll admit I don't understand the maths, but it seems to work, and there's fewer loops needed.
I've attached my test project, it's pretty grotty with a lot of VEX, so needs a big old cleanup, but might be useful if anyone else is trying to figure this out!