Convert Processing code to Arduino???

I want to convert the code (below) from Processing into Arduino

If instead you say "I want to convert the code (below) from Processing into C/C++", the whole thing becomes much easier.

e.g. not float[] yvalues; 
but float yvalues [someConstantSize];