commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Juntunen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-1439) IntervalsSet getBoundarySize() method fails when interval is a single point
Date Sun, 21 Jan 2018 05:44:00 GMT

     [ https://issues.apache.org/jira/browse/MATH-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Juntunen updated MATH-1439:
--------------------------------
    Description: 
After creating an IntervalsSet representing a single point, calls to getBoundarySize() fail
with a MathInternalError. The exception is thrown from the o.a.c.m.geometry.partitioning.Characterization
class, which does not expect the BSP tree nodes it visits to have hyperplanes that are similar
to those of their parents. However, IntervalsSet can (and should be allowed to) create such
a tree. I believe that the Characterization class should be updated to handle this situation
gracefully.

 

Here is an example of the failing code:

{{IntervalsSet set = new IntervalsSet(1.0, 1.0, 1e-10);}}

{{set.getBoundarySize();}}

  was:
After creating an IntervalsSet representing a single point, calls to getBoundarySize() fail
with a MathInternalError. The exception is thrown from the o.a.c.m.geometry.partitioning.Characterization
class, which does not expect the BSP tree nodes it visits to have hyperplanes that are similar
to those of their parents. However, IntervalsSet can (and should be allowed to) create such
a tree. I believe that the Characterization class should be updated to handle this situation
gracefully.

 

Here is an example of the failing code:

{{IntervalsSet set = new IntervalsSet(1.0, 1.0, 1e-10);}}

{{set.getBoundarySize(); }}


> IntervalsSet getBoundarySize() method fails when interval is a single point
> ---------------------------------------------------------------------------
>
>                 Key: MATH-1439
>                 URL: https://issues.apache.org/jira/browse/MATH-1439
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Matt Juntunen
>            Priority: Major
>             Fix For: 4.0, 3.5, 3.6
>
>
> After creating an IntervalsSet representing a single point, calls to getBoundarySize()
fail with a MathInternalError. The exception is thrown from the o.a.c.m.geometry.partitioning.Characterization
class, which does not expect the BSP tree nodes it visits to have hyperplanes that are similar
to those of their parents. However, IntervalsSet can (and should be allowed to) create such
a tree. I believe that the Characterization class should be updated to handle this situation
gracefully.
>  
> Here is an example of the failing code:
> {{IntervalsSet set = new IntervalsSet(1.0, 1.0, 1e-10);}}
> {{set.getBoundarySize();}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message