This is off-topic as far as Postgis, but I was hoping that someone
could help me before I went and signed on to yet another list.<br>
<br>
I frequently need to find averages of numbers that are in
decibels.  Since this is a logarithmic number, the appropriate way
to do this is:<br>
select 10*(log(avg(10^([decibel field])/10))<br>
<br>
Writing this day in day out gets pretty old.  I would like to
create an aggregate function  decibel_average([decibel field]) but
am finding the documentation a bit confusing.<br>
<br>
If any one has any pointers I would really appreciate the help (also, please feel free to reply off list).<br>
<br>
David<br>