I'm pretty sure, that the basic stuff is right:
in the koef vector should be a list of the certain stage(maxLength) of the triangle.
But the output is just crap and has no structure. I can't figure out whats wrong.
It would be nice to get a tip, where the problem could be.
public float[] getBinomKoef(int maxLength) { float[] koef = new float[2500]; float[] koef2 = new float[2500]; int nowLength = 1; koef[0]=1; int nStore = 0; while( maxLength > nowLength) { koef2 = koef; for(int n = 1; n < nowLength; n++) { koef[n] = (koef2[n-1])+(koef2[n]); nStore = n; } koef[nStore+1] = 1; nowLength++; } return koef; }