Quantcast
Channel: Forums - Geoprocessing
Viewing all articles
Browse latest Browse all 1751

Variable weights in a weighted average

$
0
0
Good morning,

I am using the field calculator to calculate a weighted average of two fields and would like to be able to change the weights.

Something like this:
w_1 = 1/2
w_2 = 1/2

[Field_1]*w1+ [Field_2]*w_2

I can get [Field_1]*1/2+ [Field_2]*1/2 to work, but not the above. How do I put the weights into my expression ? Thanks a lot for suggestions, I am new to this.

Juliane

Viewing all articles
Browse latest Browse all 1751

Trending Articles