asked on
Given that a sample g = (c1 0 0 1) is a vector
*****************************************************
c1 0 0 1
c2 0 1 0
c3 1 0 0
*****************************************************
public void one_iteration(int t){
CellNode bestFit; //Class CellNode (0,0,0)
CellNode tempNode;
double [] wUpdate;
double varInflue;
double [] varW_Vector;
Gene[] random_order = shuffle();
for(int j=0; j<8.length; j++){
Gene g = random_order[j]; //Given than g = ()
bestFit = find_best_Fit(g);
bestFit.add(g); //Given that bestFit has a method clear_list : which clears all the g containt of bestFit
for(int i=0; i<6; i++)
{
int xBMap = map[i].get_x();
int yBMap = map[i].get_y();
currentNode = new CellNode(xBMap,yBMap, xBMap);
varW_Vector = map[i].get_weight_vector();
wUpdate = Function.update_weight_vector(varInflue, varW_Vector,currentNode);
if (varInflue > 0)
{
map[i].set_weight_vector(wUpdate);
}
}
}
}
ASKER
ASKER
ASKER
ASKER
for(int i=0; i<bestFit.length; i++)
{
bestFit.clear_list //give that bestFit has a method clear_list
}
ASKER
Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.
TRUSTED BY
Why - what happens when you don't?