[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Package statistics: tricdf (bug?)
From: |
Evangelos Rozos |
Subject: |
Package statistics: tricdf (bug?) |
Date: |
Tue, 23 Jun 2020 12:35:36 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
I think something is wrong with tricdf function (maybe triinv also).
>> tricdf (0.7, 0.5, 1.0, 0.9)
ans = 0.16000
The correct answer should be 0.2.
MATLAB gives 0.2. This value can be also verified by the geometry of the
pdf triangle with base from 0.5 to 1, and height 4 at 0.9. Then, the
area of the triangle with base from 0.5 to 0.7 and height 2 (0.7 is in
the middle of the 0.5 to 0.9 segment) is 0.2.
- Package statistics: tricdf (bug?),
Evangelos Rozos <=