Issue 68 in casacore: Additional functions for ArrayMath, ArrayPartMath, MaskArrMath

4 views
Skip to first unread message

casa...@googlecode.com

unread,
Jun 9, 2014, 10:23:45 PM6/9/14
to casacor...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Milestone-Release1.4

New issue 68 by Matthew....@gmail.com: Additional functions for ArrayMath,
ArrayPartMath, MaskArrMath
http://code.google.com/p/casacore/issues/detail?id=68

This issue reports some patches I have made for casacore-1.6.0a in
ASKAPsoft (the SDP version that is released for SKA use).

These patches add additional functionality to the ArrayMath, ArrayPartMath
and MaskArrMath files, allowing calculation of additional statistics. This
is particularly useful for the slidingArrayMath function.

The statistics that have been added are:
* MADFM (median absolute deviation from the median)
* interHexileRange (difference between the bottom 6th and the top 6th of
the values - the semi-interhexile range has been used as a robust estimator
for the rms)
* interQuartileRange (difference between 1st & 3rd quartiles)

It was the MADFM that I was particularly after, but have been experimenting
with the other statistics so thought I'd include them too. The MADFM
basically replicates the interface for the median function, and the others
use a similar interface to the fractile (without the fraction).

I have attached the patch files used in askapsoft. The code has been
verified to work when called from within askapsoft.


Attachments:
patch-casa::Arrays::ArrayMath.h 3.0 KB
patch-casa::Arrays::ArrayMath.tcc 1.4 KB
patch-casa::Arrays::ArrayPartMath.h 2.5 KB
patch-casa::Arrays::ArrayPartMath.tcc 5.4 KB
patch-casa::Arrays::MaskArrMath.h 1.3 KB
patch-casa::Arrays::MaskArrMath.tcc 494 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

casa...@googlecode.com

unread,
Jun 10, 2014, 3:32:01 AM6/10/14
to casacor...@googlegroups.com
Updates:
Status: Started
Owner: gervandi...@gmail.com

Comment #1 on issue 68 by gervandi...@gmail.com: Additional functions for
ArrayMath, ArrayPartMath, MaskArrMath
http://code.google.com/p/casacore/issues/detail?id=68

Matthew,
Very nice. Do you also have test code for those new functions?
Ger

casa...@googlecode.com

unread,
Jun 10, 2014, 9:30:01 AM6/10/14
to casacor...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 68 by gervandi...@gmail.com: Additional functions for
ArrayMath, ArrayPartMath, MaskArrMath
http://code.google.com/p/casacore/issues/detail?id=68

I've merged in the changes.
I've generalized it by making interFractile functions which are called by
hexile and quartile.
A few small errors in the implementation were fixed. Also optimizations
have been made by re-using the tmp copy if possible.

Some test code has to be added.
Reply all
Reply to author
Forward
0 new messages