Opened 15 years ago

Closed 15 years ago

## #650 closed task (fixed)

# Geometric mean

Reported by: | Johan Enell | Owned by: | Johan Enell |
---|---|---|---|

Priority: | critical | Milestone: | BASE 2.4 |

Component: | core | Version: | trunk |

Keywords: | Cc: |

### Description

Create an geometric mean expression in the query package. Use the arithmetic mean in the calculation.

exp(avg(ln(x)))

### Change History (7)

### comment:1 Changed 15 years ago by

Resolution: | → fixed |
---|---|

Status: | new → closed |

### comment:2 Changed 15 years ago by

Resolution: | fixed |
---|---|

Status: | closed → reopened |

The LN() and EXP() functions have different names in different databases. See LogExpression? and ExpExpression? for more info.

### comment:3 Changed 15 years ago by

Priority: | major → critical |
---|

### comment:4 Changed 15 years ago by

(In [3517]) References #650 Creates Ql and String from the parts already made in LogExpression? and ExpExpression?. Uses lazy initialization for the full GeometricMean? expression. This could be changed to creating the expression every time it is needed. Don't know which impementation that is most efficient.

### comment:5 Changed 15 years ago by

Resolution: | → fixed |
---|---|

Status: | reopened → closed |

### comment:6 Changed 15 years ago by

Resolution: | fixed |
---|---|

Status: | closed → reopened |

Add correct @version number in javadoc.

### comment:7 Changed 15 years ago by

Resolution: | → fixed |
---|---|

Status: | reopened → closed |

**Note:**See TracTickets for help on using tickets.

(In [3514]) Fixes #650