In article <sgvueo$s73$1@gioia.aioe.org>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
I want to use math functions in Awk that are not available by default.
What are the typical (or best) methods to do so. Is there an Awk math
library (awk source code), ideally a standard or a de facto standard?
Should such functions be better accessed from the shell environment
(using standard Unix tools for example)? Any opinions or suggestions?
Specifically I'm looking for the Poisson function.
I don't know what you mean by "Poisson function". It doesn't seem to show
up in this list:
https://en.wikipedia.org/wiki/List_of_things_named_after_Siméon_Denis_Poisson
In article <sgvueo$s73$1@gioia.aioe.org>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
I want to use math functions in Awk that are not available by default.
What are the typical (or best) methods to do so. Is there an Awk math >>library (awk source code), ideally a standard or a de facto standard? >>Should such functions be better accessed from the shell environment
(using standard Unix tools for example)? Any opinions or suggestions? >>Specifically I'm looking for the Poisson function.
I don't know what you mean by "Poisson function". It doesn't seem to show
up in this list:
https://en.wikipedia.org/wiki/List_of_things_named_after_Siméon_Denis_Poisson
I mean the parameterized function describing the Poisson distribution: >https://en.wikipedia.org/wiki/Poisson_distribution...
or maybe also this ("probability mass function") for larger values of r >https://en.wikipedia.org/wiki/Negative_binomial_distribution
(As far as I had been told, sometimes also know as Pareto.)
Although this is the function I want to examine the questions can be
taken more generally for any function that is not available in Awk.
General Awk solutions/suggestions or GNU Awk specific are both welcome.
On 04.09.2021 16:28, Kenny McCormack wrote:
In article <sgvueo$s73$1@gioia.aioe.org>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
I want to use math functions in Awk that are not available by default.
What are the typical (or best) methods to do so. Is there an Awk math
library (awk source code), ideally a standard or a de facto standard?
Should such functions be better accessed from the shell environment
(using standard Unix tools for example)? Any opinions or suggestions?
Specifically I'm looking for the Poisson function.
I don't know what you mean by "Poisson function". It doesn't seem to show >> up in this list:
https://en.wikipedia.org/wiki/List_of_things_named_after_Siméon_Denis_Poisson
I mean the parameterized function describing the Poisson distribution: https://en.wikipedia.org/wiki/Poisson_distribution
or maybe also this ("probability mass function") for larger values of r https://en.wikipedia.org/wiki/Negative_binomial_distribution
(As far as I had been told, sometimes also know as Pareto.)
Not a discrete but continuous function; in ASCII graphics something
like
**
* *
* *
* * _____> asymptotically towards 0
^____starting at (0,0)
Although this is the function I want to examine the questions can be
taken more generally for any function that is not available in Awk.
General Awk solutions/suggestions or GNU Awk specific are both
welcome.
On 04.09.2021 16:28, Kenny McCormack wrote:
In article <sgvueo$s73$1@gioia.aioe.org>,
Janis Papanagnou <janis_papanagnou@hotmail.com> wrote:
I want to use math functions in Awk that are not available by default.
What are the typical (or best) methods to do so. Is there an Awk math
library (awk source code), ideally a standard or a de facto standard?
Should such functions be better accessed from the shell environment
(using standard Unix tools for example)? Any opinions or suggestions?
Specifically I'm looking for the Poisson function.
I don't know what you mean by "Poisson function". It doesn't seem to show >> up in this list:
https://en.wikipedia.org/wiki/List_of_things_named_after_Siméon_Denis_Poisson
I mean the parameterized function describing the Poisson distribution: https://en.wikipedia.org/wiki/Poisson_distribution
or maybe also this ("probability mass function") for larger values of r https://en.wikipedia.org/wiki/Negative_binomial_distribution
(As far as I had been told, sometimes also know as Pareto.)
Not a discrete but continuous function; in ASCII graphics something like
**
* *
* *
* * _____> asymptotically towards 0
^____starting at (0,0)
Although this is the function I want to examine the questions can be
taken more generally for any function that is not available in Awk.
General Awk solutions/suggestions or GNU Awk specific are both welcome.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 66:17:23 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,275,050 |