If I do, it works
elements.getElement(j).getValues().getArray()[i]=(elements.getElement(j).getValues().getVariable(i)-minimum)/(maximum-minimum);
But if I do this, he tells me that it should be a variable
elements.getElement(j).getValues().getVariable(i)=(elements.getElement(j).getValues().getVariable(i)-minimum)/(maximum-minimum);
Two functions:
double[] getArray(){
return array;
}
double getVariable(int position){
return array[position];
}
I believe that what is ahead does not matter, and it works correctly, and the error should lie somewhere in the end. And how does this happen when I assign let say say this (1st line), it works, which means it is a variable, but when I try to assign something to it like (2nd line), it does not work . How dumb am I? What am I missing?
double max=elements.getElement(j).getValues().getVariable(i);
elements.getElement(j).getValues().getVariable(i)=0.0;
source
share