void PointPlotter::PlotPoint(JPoint * point) { double x=point->getX(); double y=point->getY(); double z=point->getZ(); unsigned char r=point->getR(); unsigned char b=point->getB(); unsigned char g=point->getG(); PlotPoint( x, y, z, r, g, b); }
// fill array // uses global var : ... // scanning complex plane int ComputeFatouComponents(unsigned char A[], int IterationMax ) { unsigned int ix, iy; // pixel coordinate //printf("compute image \n"); // for all pixels of image for(iy = iyMin; iy<=iyMax; ++iy) { //printf(" %d z %d\n", iy, iyMax); //info for(ix= ixMin; ix<=ixMax; ++ix) PlotPoint(A, ix, iy, IterationMax ) ; // } return 0; }
void STDPGroup::Init(int numNeu, int id, RGB baseCol) { this->id = id; //set the ID of this group this->baseCol = baseCol; //generate the new neurons groupPos = PlotPoint(0,0,0); for (int neuron_counter = 0; neuron_counter<numNeu; neuron_counter++) { neurons.push_back(new STDPNeuron(id,this->baseCol)); neurons[neuron_counter]->id = neuron_counter; } }
void Group::Init(int numNeu, int id,RGB basecol) { this->id = id; //set the ID of this group baseCol = basecol; //generate the new neurons groupPos = PlotPoint(0,0,0); for (int neuron_counter = 0; neuron_counter<numNeu; neuron_counter++) { Neuron* neuron = new Neuron(id,baseCol); neurons.push_back(neuron); neuron->id = neuron_counter; } }