The difference between the two choices to be made.
First the FUNCTION which describes the difference between the observations and the predictions of the model.
Second is the choice of the METHOD by which this FUNCTION will be minimized.
A "method" is a "member function" - a function that is embedded in a class. In some languages, such as C++, you can also have standalone functions -functions that don't belong to any class.
I could not say they are really the same, but for sure method is use to minimize a function.
If you use function, you should return a value ether null or not.
sample:
//calling the function
private void abc() {
int xsample;
int zyx;
zyx=xyz(xsample);
if (zyx==1) {
printf("the result is %d",xsample); }
else {
printf("nothing change in %d",xsample); }
}
//this returns a value
private int xyz(int sample){
sample = 1;
if (sample!=1) xzy=1;
return xyz;
}
Good Luck!
:)
Main Topics
Browse All Topics





by: khalilhenoudPosted on 2008-09-01 at 01:56:39ID: 22358452
Adding to the last information, i want to mention that i am not able to add a property without a put or get function.So what if i want to add a simple variable, how to do it?
With the add variable i am able to do that but with add property i am not.
So please help me understanding very well the difference between add method and add function, and the difference between add property and add variable.
Thank you.