File tree Expand file tree Collapse file tree 5 files changed +4699
-4863
lines changed Expand file tree Collapse file tree 5 files changed +4699
-4863
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace LandauEvalPadeApprox {
5
5
class EvalPDF {
6
- static void Main ( ) {
6
+ static void Main_ ( ) {
7
7
List < double > xs = [ ] ;
8
8
9
9
for ( double x = 0 ; x < 1 ; x += 1d / 4096 ) {
Original file line number Diff line number Diff line change 3
3
4
4
namespace LandauEvalPadeApprox {
5
5
class EvalQuantile {
6
- static void Main_ ( ) {
6
+ static void Main ( ) {
7
7
{
8
8
List < MultiPrecision < Pow2 . N16 > > ps = [ ] ;
9
9
@@ -21,10 +21,7 @@ static void Main_() {
21
21
for ( int exp = - 16384 ; exp > - 262144 ; exp -= 4 ) {
22
22
ps . Add ( MultiPrecision < Pow2 . N16 > . Ldexp ( 1 , exp ) ) ;
23
23
}
24
- for ( int exp = - 262144 ; exp > - 4194304 ; exp -= 16 ) {
25
- ps . Add ( MultiPrecision < Pow2 . N16 > . Ldexp ( 1 , exp ) ) ;
26
- }
27
- for ( int exp = - 4194304 ; exp >= - 16777216 ; exp -= 64 ) {
24
+ for ( int exp = - 262144 ; exp >= - 1048576 ; exp -= 16 ) {
28
25
ps . Add ( MultiPrecision < Pow2 . N16 > . Ldexp ( 1 , exp ) ) ;
29
26
}
30
27
@@ -51,7 +48,7 @@ static void Main_() {
51
48
52
49
int exp0 = - 1 ;
53
50
for ( int h = 16384 ; h >= 1 ; exp0 *= 2 , h /= 2 ) {
54
- for ( int exp = exp0 ; exp > exp0 * 2 && exp >= - 400 ; exp -- ) {
51
+ for ( int exp = exp0 ; exp > exp0 * 2 && exp >= - 600 ; exp -- ) {
55
52
for ( double v = 1 ; v > 0.5 ; v -= 1d / h ) {
56
53
ps . Add ( MultiPrecision < Pow2 . N16 > . Ldexp ( v , exp ) ) ;
57
54
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace LandauEvalPadeApprox {
7
7
internal class ExpectedQuantilePlusLimitN16 {
8
- static void Main ( ) {
8
+ static void Main_ ( ) {
9
9
using ( StreamWriter sw = new ( "../../../../results_disused/quantile_upper_precision152_limit_scaled.csv" ) ) {
10
10
sw . WriteLine ( "u:=-log2(p),v:=cquantile(p)*p" ) ;
11
11
You can’t perform that action at this time.
0 commit comments