Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#6 closed request (fixed)

Rework theplu::statistics::AveragerWeighted

Reported by: Jari Häkkinen Owned by: Peter
Priority: major Milestone:
Component: statistics Version: trunk
Keywords: Cc:

Description

Check the implementation. Add link to peters stats_weighted.tex document. Make Averager and Averager* interface more coherent. Functions should fulfill the following: 1) all weights equal to unity yiels same as Averager 2) Rescaling all weights yields no difference 3) adding a data point with weight zero yields no difference 4) add(x,w) followed by add(x,w) is equivalent to add(x,2w).

These conditions should be tested in test program. Peter realized that all conditions can not be met, so some thinking must be done (skip either 2 or 4).

Change History (4)

comment:1 Changed 15 years ago by Peter

Milestone: laterDefine and implement weighted statistics.

comment:2 Changed 15 years ago by Peter

Status: newassigned

comment:3 Changed 15 years ago by Peter

Resolution: fixed
Status: assignedclosed

Went through the code and redefined a few things. The object now fulfills the following conditions. 1) all weights equal to unity yiels same as Averager 2) Rescaling all weights yields no difference 3) adding a data point with weight zero yields no difference

These conditioned are tested in averager_test.

A link to Peter's Statistics document (HTML) will be added in short.

comment:4 Changed 14 years ago by wwwrun

Milestone: weighted statistics

Milestone weighted statistics deleted

Note: See TracTickets for help on using tickets.