commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amey Jadiye (JIRA)" <>
Subject [jira] [Commented] (NUMBERS-38) No unit tests for "LanczosApproximation" class
Date Sun, 04 Jun 2017 12:49:04 GMT


Amey Jadiye commented on NUMBERS-38:

Hi [~erans],

I think all that you copied from commons math is correct just need better refactoring of code,
as of now partial logic is present in {{}} and {{}}  and
they both generate correct output, that said I just went through all repository of commons-number
and found that code is being called from {{}} _(which I see is  very abstract term/class)_
for *Gamma functions* and  Lanczos Approximation as well as Stirling Approximation _(not present
in repo, we can code this and will be and addition)_ are extension to Gamma so their full
logic should be in their own class.

I Gamma we are generating values with basic logic if {{n <= 20}} else we calculate it with
LanczosApproximation, all  we can do is to put full logic in {{}}
and just call it, at this point Test-cases on LanczosApproximation doesn't make sense.

> No unit tests for "LanczosApproximation" class
> ----------------------------------------------
>                 Key: NUMBERS-38
>                 URL:
>             Project: Commons Numbers
>          Issue Type: Test
>            Reporter: Gilles
>              Labels: unit-test
>             Fix For: 1.0
> The computation of the {{LanczosApproximation}} (package {{o.a.c.numbers.gamma}} in module
{{commons-numbers-gamma}}) function is not checked by unit tests.

This message was sent by Atlassian JIRA

View raw message