Hi,
I have a dataset with a variable versus depth (see below example). I want to calculate a weighted average of a calculated subset of these data, for example, the weighted average from 3.2 to, say, 8.7. I know how to calculate the weighted average of the full dataset, but not a subset, which will be determined by other parameters where the output will be the depth range (in this example 3.2 and 8.7). Any one have any ideas?
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]1[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]169[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
I have a dataset with a variable versus depth (see below example). I want to calculate a weighted average of a calculated subset of these data, for example, the weighted average from 3.2 to, say, 8.7. I know how to calculate the weighted average of the full dataset, but not a subset, which will be determined by other parameters where the output will be the depth range (in this example 3.2 and 8.7). Any one have any ideas?
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]1[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]169[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]0.1[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]