Last active
December 8, 2024 19:58
-
-
Save Protonk/b4a13b37e5bdf760696cf0c7f5fe36a4 to your computer and use it in GitHub Desktop.
Kadlec plotting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run this yourself at https://replit.com/@Protonk1/kadlec-testing | |
#include <math.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <time.h> | |
typedef struct { | |
float input; | |
float output; | |
float error; | |
float diff; | |
int iters; | |
} ISRResult; | |
void interpolatedISR(float x, int NR, float alpha, int constraint, ISRResult *result) { | |
float prev_output; | |
float reference = 1 / sqrtf(x); | |
// https://doi.org/10.1109/38.595279 | |
// Blinn makes a slight modification | |
// to NR values but chooses a | |
// constant purely for exponent restoration | |
int BlinnM = 0x5F400000; | |
// http://rrrola.wz.cz/inv_sqrt.html | |
// Kadlec determined magic & NR parameters | |
// via a brute force search | |
int KadlecM = 0x5F1FFFF9; | |
// Interpolate the magic number linearly | |
int magic = BlinnM - alpha * (BlinnM - KadlecM); | |
// FISR guess | |
union { | |
float f; | |
uint32_t u; | |
} y = {x}; | |
y.u = magic - (y.u >> 1); | |
// Helps us produce a difference without | |
// worrying about N - 1 for the 1st iteration | |
float initial = y.f; | |
// Standard newton's method approximates | |
// 1/sqrt(x) (A - B x (1/sqrt(x))^2) ~ 1/sqrt(x) | |
// where A = 1.5, B = 0.5. | |
// Blinn chooses slightly different values | |
// which meet the constraint of A = B - 1 | |
float A1 = 1.47f; // BlinnISR A constant | |
float B1 = 0.47f; // BlinnISR B constant | |
// Kadlec's method approximates | |
// A/sqrt(x) (B - x (1/sqrt(x))^2) ~ 1/sqrt(x) | |
float A2, B2; | |
if (constraint == 1) { | |
// A = 0.712 & B = 2.4045 meet the constraint | |
// A(B - 1) = 1 | |
A2 = 0.712f; | |
B2 = 2.4045f; | |
} else { | |
// Original constants were chosen to be | |
// optimal for one iteration. | |
A2 = 2.4045f; | |
B2 = 0.712f; | |
} | |
// Standard method implies a constraint of A = B - 1 | |
// Kadlec's implies a constraint of A(B - 1) = 1 | |
// The blended constraint: | |
// (1-α)(A = B + 1) + α(A(B - 1) = 1) | |
float A = (1 - alpha) * A1 + alpha * A2; | |
float B = (1 - alpha) * B1 + alpha * B2; | |
for (int i = 1; i <= NR; i++) { | |
// Two approaches to Newton's Method | |
// Standard: y = y(A - Bxy^2) | |
// Kadlec: y = Ay(B - xy^2) | |
// Blend the two along with params | |
// Blended: y = ((1-α)y + αAy) * (B - xy^2) | |
float blinn_term = y.f * (A1 - B1 * x * y.f * y.f); | |
float kadlec_term = A2 * y.f * (B2 - x * y.f * y.f); | |
y.f = (1 - alpha) * blinn_term + alpha * kadlec_term; | |
// 2 from our max is where we need a diff from | |
if (i == NR - 2) | |
prev_output = y.f; | |
} | |
result->input = x; | |
result->output = y.f; | |
result->error = fabsf(y.f - reference) / reference; | |
result->diff = (NR == 1) ? y.f - initial : y.f - prev_output; | |
result->iters = NR; | |
} | |
int main() { | |
// Values chosen which are highest in initial error for | |
// the unmodified Blinn and Kadlec magic constants | |
// This allows us to see error behavior easier | |
float inputs[] = {0.0410f, 0.0313f, 0.0527f, 0.0324f, 0.05533797f}; | |
printf("input,output,error,diff,iters,alpha\n"); | |
for (int i = 0; i < 5; i++) { | |
float x = inputs[i]; | |
for (int a = 0; a <= 10; a++) { | |
float alpha = (float)a / 10.0f; | |
// 8 iterations shows Kadlec stalling | |
for (int NR = 1; NR <= 8; NR++) { | |
ISRResult result = {0}; | |
interpolatedISR(x, NR, alpha, 1, &result); | |
printf("%f,%f,%f,%f,%d,%d\n", result.input, result.output, result.error, | |
result.diff, result.iters, a); | |
} | |
} | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Compare original and adjusted values | |
library(dplyr) | |
library(ggplot2) | |
library(latex2exp) | |
## blends from standard form to original Kadlec constants | |
## A = 0.70395 & B = 2.38924 | |
original_kadlec_blend <- read.csv(text = " | |
input,output,error,diff,iters,alpha | |
0.041000,4.908667,0.006071,-0.467333,1,0 | |
0.041000,4.936593,0.000416,0.027926,2,0 | |
0.041000,4.938523,0.000025,0.029856,3,0 | |
0.041000,4.938641,0.000002,0.002048,4,0 | |
0.041000,4.938648,0.000000,0.000124,5,0 | |
0.041000,4.938648,0.000000,0.000007,6,0 | |
0.041000,4.938648,0.000000,0.000000,7,0 | |
0.041000,4.938648,0.000000,0.000000,8,0 | |
0.041000,4.896584,0.008517,-0.379440,1,1 | |
0.041000,4.926771,0.002405,0.030187,2,1 | |
0.041000,4.927589,0.002239,0.031005,3,1 | |
0.041000,4.927604,0.002236,0.000834,4,1 | |
0.041000,4.927605,0.002236,0.000016,5,1 | |
0.041000,4.927604,0.002236,0.000000,6,1 | |
0.041000,4.927605,0.002236,0.000000,7,1 | |
0.041000,4.927604,0.002236,0.000000,8,1 | |
0.041000,4.889894,0.009872,-0.286094,1,2 | |
0.041000,4.917985,0.004184,0.028092,2,2 | |
0.041000,4.917528,0.004277,0.027634,3,2 | |
0.041000,4.917540,0.004274,-0.000446,4,2 | |
0.041000,4.917539,0.004274,0.000011,5,2 | |
0.041000,4.917540,0.004274,0.000000,6,2 | |
0.041000,4.917539,0.004274,0.000000,7,2 | |
0.041000,4.917540,0.004274,0.000000,8,2 | |
0.041000,4.887794,0.010297,-0.188219,1,3 | |
0.041000,4.909569,0.005888,0.021775,2,3 | |
0.041000,4.908243,0.006157,0.020450,3,3 | |
0.041000,4.908333,0.006138,-0.001236,4,3 | |
0.041000,4.908327,0.006140,0.000084,5,3 | |
0.041000,4.908328,0.006139,-0.000005,6,3 | |
0.041000,4.908328,0.006139,0.000001,7,3 | |
0.041000,4.908327,0.006140,-0.000000,8,3 | |
0.041000,4.889552,0.009941,-0.086424,1,4 | |
0.041000,4.900959,0.007631,0.011407,2,4 | |
0.041000,4.899745,0.007877,0.010193,3,4 | |
0.041000,4.899879,0.007850,-0.001080,4,4 | |
0.041000,4.899864,0.007853,0.000119,5,4 | |
0.041000,4.899866,0.007853,-0.000013,6,4 | |
0.041000,4.899866,0.007853,0.000002,7,4 | |
0.041000,4.899866,0.007853,0.000000,8,4 | |
0.041000,4.894414,0.008957,0.018414,1,5 | |
0.041000,4.891706,0.009505,-0.002708,2,5 | |
0.041000,4.892119,0.009421,-0.002295,3,5 | |
0.041000,4.892057,0.009434,0.000350,4,5 | |
0.041000,4.892066,0.009432,-0.000053,5,5 | |
0.041000,4.892065,0.009432,0.000008,6,5 | |
0.041000,4.892065,0.009432,-0.000001,7,5 | |
0.041000,4.892065,0.009432,0.000000,8,5 | |
0.041000,4.901685,0.007485,0.125660,1,6 | |
0.041000,4.881477,0.011576,-0.020208,2,6 | |
0.041000,4.885504,0.010761,-0.016181,3,6 | |
0.041000,4.884725,0.010919,0.003248,4,6 | |
0.041000,4.884876,0.010888,-0.000628,5,6 | |
0.041000,4.884847,0.010894,0.000122,6,6 | |
0.041000,4.884852,0.010893,-0.000024,7,6 | |
0.041000,4.884851,0.010893,0.000005,8,6 | |
0.041000,4.910682,0.005663,0.234694,1,7 | |
0.041000,4.870061,0.013888,-0.040621,2,7 | |
0.041000,4.880054,0.011865,-0.030629,3,7 | |
0.041000,4.877712,0.012339,0.007651,4,7 | |
0.041000,4.878268,0.012226,-0.001786,5,7 | |
0.041000,4.878136,0.012253,0.000424,6,7 | |
0.041000,4.878167,0.012246,-0.000101,7,7 | |
0.041000,4.878160,0.012248,0.000023,8,7 | |
0.041000,4.920732,0.003628,0.344719,1,8 | |
0.041000,4.857383,0.016455,-0.063349,2,8 | |
0.041000,4.875918,0.012702,-0.044814,3,8 | |
0.041000,4.870822,0.013734,0.013440,4,8 | |
0.041000,4.872250,0.013445,-0.003668,5,8 | |
0.041000,4.871852,0.013525,0.001029,6,8 | |
0.041000,4.871964,0.013503,-0.000287,7,8 | |
0.041000,4.871933,0.013509,0.000081,8,8 | |
0.041000,4.931200,0.001508,0.455225,1,9 | |
0.041000,4.843492,0.019268,-0.087708,2,9 | |
0.041000,4.873209,0.013251,-0.057992,3,9 | |
0.041000,4.863844,0.015147,0.020353,4,9 | |
0.041000,4.866872,0.014534,-0.006336,5,9 | |
0.041000,4.865901,0.014730,0.002056,6,9 | |
0.041000,4.866213,0.014667,-0.000659,7,9 | |
0.041000,4.866113,0.014687,0.000213,8,9 | |
0.041000,4.941468,0.000571,0.565468,1,10 | |
0.041000,4.828576,0.022288,-0.112892,2,10 | |
0.041000,4.871974,0.013501,-0.069494,3,10 | |
0.041000,4.856565,0.016620,0.027989,4,10 | |
0.041000,4.862218,0.015476,-0.009756,5,10 | |
0.041000,4.860168,0.015891,0.003603,6,10 | |
0.041000,4.860914,0.015740,-0.001304,7,10 | |
0.041000,4.860643,0.015795,0.000475,8,10 | |
0.031300,5.642801,0.001687,-0.353999,1,0 | |
0.031300,5.651740,0.000105,0.008938,2,0 | |
0.031300,5.652299,0.000006,0.009498,3,0 | |
0.031300,5.652333,0.000000,0.000593,4,0 | |
0.031300,5.652334,0.000000,0.000035,5,0 | |
0.031300,5.652334,0.000000,0.000001,6,0 | |
0.031300,5.652334,0.000000,0.000000,7,0 | |
0.031300,5.652334,0.000000,0.000000,8,0 | |
0.031300,5.626687,0.004537,-0.270137,1,1 | |
0.031300,5.639421,0.002285,0.012734,2,1 | |
0.031300,5.639690,0.002237,0.013003,3,1 | |
0.031300,5.639695,0.002236,0.000274,4,1 | |
0.031300,5.639695,0.002236,0.000005,5,1 | |
0.031300,5.639695,0.002236,0.000000,6,1 | |
0.031300,5.639695,0.002236,0.000000,7,1 | |
0.031300,5.639695,0.002236,0.000000,8,1 | |
0.031300,5.616157,0.006400,-0.180631,1,2 | |
0.031300,5.628433,0.004229,0.012276,2,2 | |
0.031300,5.628169,0.004275,0.012012,3,2 | |
0.031300,5.628175,0.004274,-0.000258,4,2 | |
0.031300,5.628175,0.004274,0.000006,5,2 | |
0.031300,5.628175,0.004274,0.000000,6,2 | |
0.031300,5.628175,0.004274,0.000000,7,2 | |
0.031300,5.628175,0.004274,0.000000,8,2 | |
0.031300,5.610520,0.007398,-0.086292,1,3 | |
0.031300,5.618095,0.006057,0.007575,2,3 | |
0.031300,5.617600,0.006145,0.007080,3,3 | |
0.031300,5.617634,0.006139,-0.000461,4,3 | |
0.031300,5.617632,0.006139,0.000032,5,3 | |
0.031300,5.617632,0.006139,-0.000002,6,3 | |
0.031300,5.617632,0.006139,-0.000000,7,3 | |
0.031300,5.617632,0.006139,0.000000,8,3 | |
0.031300,5.609134,0.007643,0.012358,1,4 | |
0.031300,5.607817,0.007876,-0.001317,2,4 | |
0.031300,5.607962,0.007850,-0.001172,3,4 | |
0.031300,5.607945,0.007853,0.000129,4,4 | |
0.031300,5.607948,0.007853,-0.000014,5,4 | |
0.031300,5.607947,0.007853,0.000002,6,4 | |
0.031300,5.607947,0.007853,-0.000000,7,4 | |
0.031300,5.607947,0.007853,0.000000,8,4 | |
0.031300,5.611343,0.007252,0.114543,1,5 | |
0.031300,5.597100,0.009772,-0.014243,2,5 | |
0.031300,5.599310,0.009381,-0.012033,3,5 | |
0.031300,5.598975,0.009440,0.001875,4,5 | |
0.031300,5.599027,0.009431,-0.000284,5,5 | |
0.031300,5.599018,0.009433,0.000043,6,5 | |
0.031300,5.599020,0.009432,-0.000007,7,5 | |
0.031300,5.599020,0.009432,0.000002,8,5 | |
0.031300,5.616532,0.006334,0.219707,1,6 | |
0.031300,5.585545,0.011816,-0.030987,2,6 | |
0.031300,5.591769,0.010715,-0.024763,3,6 | |
0.031300,5.590569,0.010927,0.005024,4,6 | |
0.031300,5.590802,0.010886,-0.000968,5,6 | |
0.031300,5.590756,0.010894,0.000188,6,6 | |
0.031300,5.590765,0.010893,-0.000037,7,6 | |
0.031300,5.590763,0.010893,0.000007,8,6 | |
0.031300,5.624099,0.004995,0.327312,1,7 | |
0.031300,5.572845,0.014063,-0.051254,2,7 | |
0.031300,5.585500,0.011824,-0.038599,3,7 | |
0.031300,5.582538,0.012348,0.009693,4,7 | |
0.031300,5.583241,0.012224,-0.002259,5,7 | |
0.031300,5.583075,0.012253,0.000536,6,7 | |
0.031300,5.583114,0.012246,-0.000127,7,7 | |
0.031300,5.583105,0.012248,0.000030,8,7 | |
0.031300,5.633448,0.003341,0.436636,1,8 | |
0.031300,5.558810,0.016546,-0.074638,2,8 | |
0.031300,5.580677,0.012677,-0.052771,3,8 | |
0.031300,5.574668,0.013741,0.015858,4,8 | |
0.031300,5.576352,0.013443,-0.004325,5,8 | |
0.031300,5.575883,0.013526,0.001215,6,8 | |
0.031300,5.576014,0.013503,-0.000339,7,8 | |
0.031300,5.575977,0.013509,0.000094,8,8 | |
0.031300,5.644014,0.001472,0.547238,1,9 | |
0.031300,5.543350,0.019281,-0.100664,2,9 | |
0.031300,5.577460,0.013247,-0.066554,3,9 | |
0.031300,5.566713,0.015148,0.023363,4,9 | |
0.031300,5.570189,0.014533,-0.007271,5,9 | |
0.031300,5.569073,0.014730,0.002360,6,9 | |
0.031300,5.569432,0.014667,-0.000757,7,9 | |
0.031300,5.569317,0.014687,0.000244,8,9 | |
0.031300,5.655242,0.000514,0.658442,1,10 | |
0.031300,5.526494,0.022263,-0.128748,2,10 | |
0.031300,5.575979,0.013509,-0.079263,3,10 | |
0.031300,5.558407,0.016617,0.031913,4,10 | |
0.031300,5.564852,0.015477,-0.011127,5,10 | |
0.031300,5.562515,0.015891,0.004108,6,10 | |
0.031300,5.563366,0.015740,-0.001486,7,10 | |
0.031300,5.563056,0.015795,0.000541,8,10 | |
0.052700,4.348048,0.001841,-0.279152,1,0 | |
0.052700,4.355567,0.000115,0.007519,2,0 | |
0.052700,4.356039,0.000007,0.007991,3,0 | |
0.052700,4.356067,0.000000,0.000500,4,0 | |
0.052700,4.356068,0.000000,0.000030,5,0 | |
0.052700,4.356068,0.000000,0.000001,6,0 | |
0.052700,4.356068,0.000000,0.000000,7,0 | |
0.052700,4.356068,0.000000,0.000000,8,0 | |
0.052700,4.338266,0.004087,-0.188959,1,1 | |
0.052700,4.346163,0.002274,0.007897,2,1 | |
0.052700,4.346325,0.002237,0.008059,3,1 | |
0.052700,4.346327,0.002236,0.000164,4,1 | |
0.052700,4.346328,0.002236,0.000003,5,1 | |
0.052700,4.346328,0.002236,0.000000,6,1 | |
0.052700,4.346328,0.002236,0.000000,7,1 | |
0.052700,4.346328,0.002236,0.000000,8,1 | |
0.052700,4.332354,0.005444,-0.094834,1,2 | |
0.052700,4.337566,0.004247,0.005212,2,2 | |
0.052700,4.337446,0.004275,0.005092,3,2 | |
0.052700,4.337450,0.004274,-0.000116,4,2 | |
0.052700,4.337450,0.004274,0.000003,5,2 | |
0.052700,4.337450,0.004274,-0.000000,6,2 | |
0.052700,4.337450,0.004274,0.000000,7,2 | |
0.052700,4.337450,0.004274,0.000000,8,2 | |
0.052700,4.329465,0.006107,0.002253,1,3 | |
0.052700,4.329315,0.006142,-0.000150,2,3 | |
0.052700,4.329326,0.006139,-0.000139,3,3 | |
0.052700,4.329325,0.006139,0.000010,4,3 | |
0.052700,4.329324,0.006139,-0.000001,5,3 | |
0.052700,4.329325,0.006139,0.000000,6,3 | |
0.052700,4.329324,0.006139,0.000000,7,3 | |
0.052700,4.329325,0.006139,0.000000,8,3 | |
0.052700,4.328804,0.006259,0.101629,1,4 | |
0.052700,4.321082,0.008032,-0.007723,2,4 | |
0.052700,4.321946,0.007833,-0.006858,3,4 | |
0.052700,4.321852,0.007855,0.000770,4,4 | |
0.052700,4.321862,0.007852,-0.000084,5,4 | |
0.052700,4.321861,0.007853,0.000010,6,4 | |
0.052700,4.321861,0.007853,-0.000001,7,4 | |
0.052700,4.321861,0.007853,0.000000,8,4 | |
0.052700,4.329592,0.006078,0.202392,1,5 | |
0.052700,4.312675,0.009961,-0.016916,2,5 | |
0.052700,4.315329,0.009352,-0.014263,3,5 | |
0.052700,4.314928,0.009444,0.002253,4,5 | |
0.052700,4.314989,0.009430,-0.000340,5,5 | |
0.052700,4.314980,0.009432,0.000051,6,5 | |
0.052700,4.314981,0.009432,-0.000008,7,5 | |
0.052700,4.314981,0.009432,0.000001,8,5 | |
0.052700,4.331085,0.005735,0.303861,1,6 | |
0.052700,4.304042,0.011943,-0.027043,2,6 | |
0.052700,4.309499,0.010691,-0.021586,3,6 | |
0.052700,4.308447,0.010932,0.004405,4,6 | |
0.052700,4.308652,0.010885,-0.000847,5,6 | |
0.052700,4.308611,0.010894,0.000165,6,6 | |
0.052700,4.308619,0.010893,-0.000032,7,6 | |
0.052700,4.308618,0.010893,0.000007,8,6 | |
0.052700,4.334700,0.004905,0.371106,1,7 | |
0.052700,4.294705,0.014087,-0.039994,2,7 | |
0.052700,4.304585,0.011819,-0.030114,3,7 | |
0.052700,4.302273,0.012349,0.007568,4,7 | |
0.052700,4.302822,0.012224,-0.001764,5,7 | |
0.052700,4.302692,0.012253,0.000419,6,7 | |
0.052700,4.302723,0.012246,-0.000099,7,7 | |
0.052700,4.302715,0.012248,0.000023,8,7 | |
0.052700,4.340531,0.003567,0.426925,1,8 | |
0.052700,4.284305,0.016474,-0.056226,2,8 | |
0.052700,4.300761,0.012697,-0.039771,3,8 | |
0.052700,4.296237,0.013735,0.011932,4,8 | |
0.052700,4.297505,0.013444,-0.003255,5,8 | |
0.052700,4.297151,0.013525,0.000914,6,8 | |
0.052700,4.297250,0.013503,-0.000255,7,8 | |
0.052700,4.297223,0.013509,0.000072,8,8 | |
0.052700,4.347874,0.001881,0.484286,1,9 | |
0.052700,4.272745,0.019128,-0.075129,2,9 | |
0.052700,4.298163,0.013293,-0.049710,3,9 | |
0.052700,4.290149,0.015133,0.017404,4,9 | |
0.052700,4.292740,0.014538,-0.005423,5,9 | |
0.052700,4.291909,0.014729,0.001760,6,9 | |
0.052700,4.292176,0.014667,-0.000564,7,9 | |
0.052700,4.292091,0.014687,0.000182,8,9 | |
0.052700,4.356542,0.000109,0.542942,1,10 | |
0.052700,4.259849,0.022089,-0.096693,2,10 | |
0.052700,4.296967,0.013568,-0.059575,3,10 | |
0.052700,4.283778,0.016595,0.023929,4,10 | |
0.052700,4.288614,0.015485,-0.008353,5,10 | |
0.052700,4.286860,0.015888,0.003082,6,10 | |
0.052700,4.287499,0.015741,-0.001115,7,10 | |
0.052700,4.287267,0.015794,0.000407,8,10 | |
0.032400,5.542126,0.002417,-0.384274,1,0 | |
0.032400,5.554704,0.000153,0.012578,2,0 | |
0.032400,5.555504,0.000009,0.013379,3,0 | |
0.032400,5.555552,0.000001,0.000848,4,0 | |
0.032400,5.555555,0.000000,0.000051,5,0 | |
0.032400,5.555555,0.000000,0.000003,6,0 | |
0.032400,5.555555,0.000000,0.000000,7,0 | |
0.032400,5.555555,0.000000,0.000000,8,0 | |
0.032400,5.526425,0.005243,-0.299999,1,1 | |
0.032400,5.542764,0.002302,0.016339,2,1 | |
0.032400,5.543126,0.002237,0.016701,3,1 | |
0.032400,5.543132,0.002236,0.000368,4,1 | |
0.032400,5.543132,0.002236,0.000006,5,1 | |
0.032400,5.543132,0.002236,0.000000,6,1 | |
0.032400,5.543132,0.002236,0.000000,7,1 | |
0.032400,5.543132,0.002236,0.000000,8,1 | |
0.032400,5.516348,0.007057,-0.210040,1,2 | |
0.032400,5.532126,0.004217,0.015779,2,2 | |
0.032400,5.531802,0.004276,0.015454,3,2 | |
0.032400,5.531810,0.004274,-0.000317,4,2 | |
0.032400,5.531810,0.004274,0.000008,5,2 | |
0.032400,5.531810,0.004274,0.000000,6,2 | |
0.032400,5.531810,0.004274,0.000000,7,2 | |
0.032400,5.531810,0.004274,0.000000,8,2 | |
0.032400,5.511186,0.007987,-0.115227,1,3 | |
0.032400,5.522106,0.006021,0.010921,2,3 | |
0.032400,5.521404,0.006147,0.010218,3,3 | |
0.032400,5.521451,0.006139,-0.000655,4,3 | |
0.032400,5.521448,0.006139,0.000044,5,3 | |
0.032400,5.521448,0.006139,-0.000003,6,3 | |
0.032400,5.521448,0.006139,0.000000,7,3 | |
0.032400,5.521448,0.006139,0.000000,8,3 | |
0.032400,5.510283,0.008149,-0.016092,1,4 | |
0.032400,5.512108,0.007820,0.001825,2,4 | |
0.032400,5.511909,0.007856,0.001626,3,4 | |
0.032400,5.511930,0.007852,-0.000178,4,4 | |
0.032400,5.511929,0.007853,0.000019,5,4 | |
0.032400,5.511929,0.007853,-0.000001,6,4 | |
0.032400,5.511929,0.007853,0.000000,7,4 | |
0.032400,5.511929,0.007853,0.000000,8,4 | |
0.032400,5.512972,0.007665,0.086572,1,5 | |
0.032400,5.501632,0.009706,-0.011340,2,5 | |
0.032400,5.503384,0.009391,-0.009588,3,5 | |
0.032400,5.503119,0.009439,0.001486,4,5 | |
0.032400,5.503159,0.009431,-0.000225,5,5 | |
0.032400,5.503153,0.009432,0.000034,6,5 | |
0.032400,5.503154,0.009432,-0.000005,7,5 | |
0.032400,5.503154,0.009432,0.000001,8,5 | |
0.032400,5.518626,0.006647,0.192202,1,6 | |
0.032400,5.490275,0.011750,-0.028351,2,6 | |
0.032400,5.495957,0.010728,-0.022669,3,6 | |
0.032400,5.494861,0.010925,0.004585,4,6 | |
0.032400,5.495074,0.010887,-0.000883,5,6 | |
0.032400,5.495032,0.010894,0.000172,6,6 | |
0.032400,5.495041,0.010893,-0.000033,7,6 | |
0.032400,5.495039,0.010893,0.000007,8,6 | |
0.032400,5.526630,0.005206,0.300242,1,7 | |
0.032400,5.477737,0.014007,-0.048893,2,7 | |
0.032400,5.489795,0.011837,-0.036836,3,7 | |
0.032400,5.486972,0.012345,0.009235,4,7 | |
0.032400,5.487641,0.012225,-0.002153,5,7 | |
0.032400,5.487483,0.012253,0.000511,6,7 | |
0.032400,5.487521,0.012246,-0.000121,7,7 | |
0.032400,5.487511,0.012248,0.000029,8,7 | |
0.032400,5.536379,0.003452,0.409966,1,8 | |
0.032400,5.463828,0.016511,-0.072551,2,8 | |
0.032400,5.485073,0.012687,-0.051306,3,8 | |
0.032400,5.479235,0.013738,0.015407,4,8 | |
0.032400,5.480870,0.013443,-0.004203,5,8 | |
0.032400,5.480414,0.013525,0.001179,6,8 | |
0.032400,5.480542,0.013502,-0.000329,7,8 | |
0.032400,5.480506,0.013509,0.000093,8,8 | |
0.032400,5.547295,0.001487,0.520919,1,9 | |
0.032400,5.448469,0.019276,-0.098826,2,9 | |
0.032400,5.481955,0.013248,-0.065340,3,9 | |
0.032400,5.471403,0.015147,0.022934,4,9 | |
0.032400,5.474816,0.014533,-0.007139,5,9 | |
0.032400,5.473722,0.014730,0.002318,6,9 | |
0.032400,5.474072,0.014667,-0.000743,7,9 | |
0.032400,5.473960,0.014687,0.000238,8,9 | |
0.032400,5.558814,0.000586,0.632413,1,10 | |
0.032400,5.431697,0.022295,-0.127117,2,10 | |
0.032400,5.480566,0.013498,-0.078248,3,10 | |
0.032400,5.463215,0.016621,0.031518,4,10 | |
0.032400,5.469579,0.015476,-0.010986,5,10 | |
0.032400,5.467271,0.015891,0.004056,6,10 | |
0.032400,5.468112,0.015740,-0.001467,7,10 | |
0.032400,5.467806,0.015795,0.000535,8,10 | |
0.055338,4.248918,0.000483,-0.209452,1,0 | |
0.055338,4.250849,0.000029,0.001931,2,0 | |
0.055338,4.250967,0.000002,0.002048,3,0 | |
0.055338,4.250973,0.000000,0.000124,4,0 | |
0.055338,4.250974,0.000000,0.000007,5,0 | |
0.055338,4.250974,0.000000,0.000000,6,0 | |
0.055338,4.250974,0.000000,0.000000,7,0 | |
0.055338,4.250974,0.000000,0.000000,8,0 | |
0.055338,4.238734,0.002879,-0.119660,1,1 | |
0.055338,4.241416,0.002248,0.002682,2,1 | |
0.055338,4.241467,0.002236,0.002732,3,1 | |
0.055338,4.241467,0.002236,0.000051,4,1 | |
0.055338,4.241467,0.002236,0.000001,5,1 | |
0.055338,4.241467,0.002236,0.000000,6,1 | |
0.055338,4.241467,0.002236,0.000000,7,1 | |
0.055338,4.241467,0.002236,0.000000,8,1 | |
0.055338,4.231933,0.004479,-0.026425,1,2 | |
0.055338,4.232825,0.004269,0.000892,2,2 | |
0.055338,4.232803,0.004274,0.000870,3,2 | |
0.055338,4.232803,0.004274,-0.000022,4,2 | |
0.055338,4.232803,0.004274,0.000000,5,2 | |
0.055338,4.232803,0.004274,0.000000,6,2 | |
0.055338,4.232803,0.004274,0.000000,7,2 | |
0.055338,4.232803,0.004274,0.000000,8,2 | |
0.055338,4.227674,0.005481,0.069291,1,3 | |
0.055338,4.224684,0.006184,-0.002990,2,3 | |
0.055338,4.224888,0.006136,-0.002786,3,3 | |
0.055338,4.224874,0.006140,0.000190,4,3 | |
0.055338,4.224875,0.006139,-0.000013,5,3 | |
0.055338,4.224875,0.006139,0.000001,6,3 | |
0.055338,4.224875,0.006139,0.000000,7,3 | |
0.055338,4.224875,0.006139,0.000000,8,3 | |
0.055338,4.225152,0.006074,0.166806,1,4 | |
0.055338,4.216741,0.008053,-0.008411,2,4 | |
0.055338,4.217684,0.007831,-0.007468,3,4 | |
0.055338,4.217581,0.007855,0.000840,4,4 | |
0.055338,4.217592,0.007853,-0.000092,5,4 | |
0.055338,4.217591,0.007853,0.000010,6,4 | |
0.055338,4.217591,0.007853,-0.000001,7,4 | |
0.055338,4.217591,0.007853,0.000000,8,4 | |
0.055338,4.224450,0.006239,0.245265,1,5 | |
0.055338,4.208739,0.009935,-0.015711,2,5 | |
0.055338,4.211200,0.009356,-0.013250,3,5 | |
0.055338,4.210828,0.009444,0.002089,4,5 | |
0.055338,4.210885,0.009430,-0.000315,5,5 | |
0.055338,4.210876,0.009432,0.000048,6,5 | |
0.055338,4.210877,0.009432,-0.000007,7,5 | |
0.055338,4.210877,0.009432,0.000001,8,5 | |
0.055338,4.226565,0.005742,0.297368,1,6 | |
0.055338,4.200209,0.011942,-0.026356,2,6 | |
0.055338,4.205526,0.010691,-0.021039,3,6 | |
0.055338,4.204501,0.010932,0.004292,4,6 | |
0.055338,4.204700,0.010885,-0.000826,5,6 | |
0.055338,4.204661,0.010894,0.000160,6,6 | |
0.055338,4.204669,0.010893,-0.000031,7,6 | |
0.055338,4.204668,0.010893,0.000006,8,6 | |
0.055338,4.230565,0.004801,0.351386,1,7 | |
0.055338,4.190973,0.014114,-0.039592,2,7 | |
0.055338,4.200759,0.011812,-0.029806,3,7 | |
0.055338,4.198470,0.012351,0.007497,4,7 | |
0.055338,4.199013,0.012223,-0.001746,5,7 | |
0.055338,4.198884,0.012253,0.000414,6,7 | |
0.055338,4.198915,0.012246,-0.000098,7,7 | |
0.055338,4.198908,0.012248,0.000023,8,7 | |
0.055338,4.236251,0.003463,0.407060,1,8 | |
0.055338,4.180801,0.016507,-0.055450,2,8 | |
0.055338,4.197037,0.012688,-0.039214,3,8 | |
0.055338,4.192575,0.013738,0.011774,4,8 | |
0.055338,4.193826,0.013443,-0.003211,5,8 | |
0.055338,4.193477,0.013525,0.000902,6,8 | |
0.055338,4.193574,0.013503,-0.000251,7,8 | |
0.055338,4.193548,0.013509,0.000071,8,8 | |
0.055338,4.243424,0.001776,0.464251,1,9 | |
0.055338,4.169494,0.019167,-0.073930,2,9 | |
0.055338,4.194516,0.013281,-0.048908,3,9 | |
0.055338,4.186628,0.015137,0.017134,4,9 | |
0.055338,4.189178,0.014537,-0.005337,5,9 | |
0.055338,4.188360,0.014729,0.001732,6,9 | |
0.055338,4.188623,0.014667,-0.000555,7,9 | |
0.055338,4.188539,0.014687,0.000179,8,9 | |
0.055338,4.251891,0.000216,0.522706,1,10 | |
0.055338,4.156880,0.022135,-0.095011,2,10 | |
0.055338,4.193364,0.013552,-0.058527,3,10 | |
0.055338,4.180403,0.016601,0.023523,4,10 | |
0.055338,4.185156,0.015483,-0.008208,5,10 | |
0.055338,4.183432,0.015888,0.003029,6,10 | |
0.055338,4.184060,0.015741,-0.001096,7,10 | |
0.055338,4.183831,0.015795,0.000399,8,10 | |
") | |
original_kadlec_blend$source <- "Unmodified" | |
## blends from standard form to adjusted Kadlec constants | |
## that meet the constraint A(B - 1) = 1 | |
## A = 0.712 & B = 2.4045 | |
adjusted_kadlec_blend <- read.csv(text = " | |
input,output,error,diff,iters,alpha | |
0.041000,4.908667,0.006071,-0.467333,1,0 | |
0.041000,4.936593,0.000416,0.027926,2,0 | |
0.041000,4.938523,0.000025,0.029856,3,0 | |
0.041000,4.938641,0.000002,0.002048,4,0 | |
0.041000,4.938648,0.000000,0.000124,5,0 | |
0.041000,4.938648,0.000000,0.000007,6,0 | |
0.041000,4.938648,0.000000,0.000000,7,0 | |
0.041000,4.938648,0.000000,0.000000,8,0 | |
0.041000,4.907616,0.006284,-0.368409,1,1 | |
0.041000,4.938001,0.000131,0.030385,2,1 | |
0.041000,4.938642,0.000001,0.031026,3,1 | |
0.041000,4.938650,0.000000,0.000648,4,1 | |
0.041000,4.938649,0.000000,0.000007,5,1 | |
0.041000,4.938650,0.000000,0.000000,6,1 | |
0.041000,4.938650,0.000000,0.000001,7,1 | |
0.041000,4.938650,0.000000,0.000000,8,1 | |
0.041000,4.911895,0.005417,-0.264092,1,2 | |
0.041000,4.939411,0.000154,0.027516,2,2 | |
0.041000,4.938624,0.000005,0.026729,3,2 | |
0.041000,4.938653,0.000001,-0.000759,4,2 | |
0.041000,4.938652,0.000001,0.000028,5,2 | |
0.041000,4.938652,0.000001,-0.000000,6,2 | |
0.041000,4.938652,0.000001,0.000000,7,2 | |
0.041000,4.938652,0.000001,0.000000,8,2 | |
0.041000,4.920674,0.003640,-0.155338,1,3 | |
0.041000,4.940079,0.000290,0.019405,2,3 | |
0.041000,4.938531,0.000024,0.017857,3,3 | |
0.041000,4.938664,0.000003,-0.001415,4,3 | |
0.041000,4.938653,0.000001,0.000122,5,3 | |
0.041000,4.938653,0.000001,-0.000010,6,3 | |
0.041000,4.938653,0.000001,0.000001,7,3 | |
0.041000,4.938653,0.000001,0.000000,8,3 | |
0.041000,4.933188,0.001106,-0.042787,1,4 | |
0.041000,4.939375,0.000147,0.006186,2,4 | |
0.041000,4.938559,0.000018,0.005370,3,4 | |
0.041000,4.938668,0.000004,-0.000707,4,4 | |
0.041000,4.938653,0.000001,0.000095,5,4 | |
0.041000,4.938655,0.000001,-0.000013,6,4 | |
0.041000,4.938655,0.000001,0.000001,7,4 | |
0.041000,4.938655,0.000001,-0.000000,8,4 | |
0.041000,4.948657,0.002027,0.072657,1,5 | |
0.041000,4.936800,0.000374,-0.011857,2,5 | |
0.041000,4.938993,0.000070,-0.009664,3,5 | |
0.041000,4.938595,0.000011,0.001795,4,5 | |
0.041000,4.938667,0.000004,-0.000326,5,5 | |
0.041000,4.938654,0.000001,0.000059,6,5 | |
0.041000,4.938657,0.000002,-0.000010,7,5 | |
0.041000,4.938657,0.000002,0.000002,8,5 | |
0.041000,4.966353,0.005610,0.190329,1,6 | |
0.041000,4.931989,0.001348,-0.034364,2,6 | |
0.041000,4.940178,0.000310,-0.026175,3,6 | |
0.041000,4.938307,0.000069,0.006318,4,6 | |
0.041000,4.938738,0.000018,-0.001440,5,6 | |
0.041000,4.938639,0.000002,0.000332,6,6 | |
0.041000,4.938662,0.000003,-0.000076,7,6 | |
0.041000,4.938657,0.000002,0.000018,8,6 | |
0.041000,4.985569,0.009501,0.309582,1,7 | |
0.041000,4.924723,0.002820,-0.060847,2,7 | |
0.041000,4.942469,0.000774,-0.043101,3,7 | |
0.041000,4.937592,0.000214,0.012869,4,7 | |
0.041000,4.938956,0.000062,-0.003513,5,7 | |
0.041000,4.938576,0.000015,0.000984,6,7 | |
0.041000,4.938682,0.000007,-0.000274,7,7 | |
0.041000,4.938653,0.000001,0.000077,8,7 | |
0.041000,5.005605,0.013558,0.429593,1,8 | |
0.041000,4.914940,0.004800,-0.090664,2,8 | |
0.041000,4.946195,0.001528,-0.059410,3,8 | |
0.041000,4.936172,0.000501,0.021231,4,8 | |
0.041000,4.939471,0.000167,-0.006723,5,8 | |
0.041000,4.938395,0.000051,0.002223,6,8 | |
0.041000,4.938746,0.000020,-0.000725,7,8 | |
0.041000,4.938632,0.000003,0.000237,8,8 | |
0.041000,5.025799,0.017647,0.549823,1,9 | |
0.041000,4.902740,0.007271,-0.123059,2,9 | |
0.041000,4.951615,0.002626,-0.074183,3,9 | |
0.041000,4.933725,0.000997,0.030985,4,9 | |
0.041000,4.940505,0.000376,-0.011111,5,9 | |
0.041000,4.937967,0.000138,0.004242,6,9 | |
0.041000,4.938921,0.000055,-0.001584,7,9 | |
0.041000,4.938562,0.000017,0.000595,8,9 | |
0.041000,5.045508,0.021637,0.669508,1,10 | |
0.041000,4.888385,0.010177,-0.157123,2,10 | |
0.041000,4.958890,0.004099,-0.086617,3,10 | |
0.041000,4.929908,0.001770,0.041523,4,10 | |
0.041000,4.942340,0.000748,-0.016550,5,10 | |
0.041000,4.937097,0.000314,0.007189,6,10 | |
0.041000,4.939325,0.000137,-0.003016,7,10 | |
0.041000,4.938381,0.000054,0.001284,8,10 | |
0.031300,5.642801,0.001687,-0.353999,1,0 | |
0.031300,5.651740,0.000105,0.008938,2,0 | |
0.031300,5.652299,0.000006,0.009498,3,0 | |
0.031300,5.652333,0.000000,0.000593,4,0 | |
0.031300,5.652334,0.000000,0.000035,5,0 | |
0.031300,5.652334,0.000000,0.000001,6,0 | |
0.031300,5.652334,0.000000,0.000000,7,0 | |
0.031300,5.652334,0.000000,0.000000,8,0 | |
0.031300,5.639267,0.002312,-0.257557,1,1 | |
0.031300,5.652141,0.000034,0.012873,2,1 | |
0.031300,5.652334,0.000000,0.013067,3,1 | |
0.031300,5.652336,0.000000,0.000196,4,1 | |
0.031300,5.652336,0.000000,0.000002,5,1 | |
0.031300,5.652336,0.000000,0.000000,6,1 | |
0.031300,5.652336,0.000000,0.000000,7,1 | |
0.031300,5.652336,0.000000,0.000000,8,1 | |
0.031300,5.641233,0.001964,-0.155555,1,2 | |
0.031300,5.652714,0.000067,0.011481,2,2 | |
0.031300,5.652325,0.000002,0.011092,3,2 | |
0.031300,5.652339,0.000001,-0.000374,4,2 | |
0.031300,5.652339,0.000001,0.000013,5,2 | |
0.031300,5.652339,0.000001,-0.000000,6,2 | |
0.031300,5.652339,0.000001,0.000001,7,2 | |
0.031300,5.652339,0.000001,-0.000000,8,2 | |
0.031300,5.647980,0.000770,-0.048832,1,3 | |
0.031300,5.652707,0.000066,0.004726,2,3 | |
0.031300,5.652310,0.000004,0.004330,3,3 | |
0.031300,5.652343,0.000002,-0.000364,4,3 | |
0.031300,5.652340,0.000001,0.000031,5,3 | |
0.031300,5.652341,0.000001,-0.000002,6,3 | |
0.031300,5.652341,0.000001,0.000000,7,3 | |
0.031300,5.652341,0.000001,0.000000,8,3 | |
0.031300,5.658840,0.001151,0.062065,1,4 | |
0.031300,5.651462,0.000154,-0.007379,2,4 | |
0.031300,5.652461,0.000022,-0.006380,3,4 | |
0.031300,5.652327,0.000001,0.000865,4,4 | |
0.031300,5.652345,0.000002,-0.000116,5,4 | |
0.031300,5.652342,0.000001,0.000016,6,4 | |
0.031300,5.652343,0.000002,-0.000002,7,4 | |
0.031300,5.652342,0.000001,0.000000,8,4 | |
0.031300,5.673134,0.003680,0.176334,1,5 | |
0.031300,5.648424,0.000692,-0.024710,2,5 | |
0.031300,5.653052,0.000127,-0.020082,3,5 | |
0.031300,5.652215,0.000021,0.003791,4,5 | |
0.031300,5.652368,0.000006,-0.000685,5,5 | |
0.031300,5.652339,0.000001,0.000124,6,5 | |
0.031300,5.652345,0.000002,-0.000022,7,5 | |
0.031300,5.652344,0.000002,0.000005,8,5 | |
0.031300,5.690221,0.006703,0.293396,1,6 | |
0.031300,5.643149,0.001625,-0.047072,2,6 | |
0.031300,5.654436,0.000372,-0.035785,3,6 | |
0.031300,5.651862,0.000084,0.008713,4,6 | |
0.031300,5.652456,0.000022,-0.001980,5,6 | |
0.031300,5.652320,0.000003,0.000458,6,6 | |
0.031300,5.652351,0.000003,-0.000105,7,6 | |
0.031300,5.652344,0.000002,0.000024,8,6 | |
0.031300,5.709475,0.010109,0.412687,1,7 | |
0.031300,5.635308,0.003012,-0.074166,2,7 | |
0.031300,5.656999,0.000825,-0.052476,3,7 | |
0.031300,5.651042,0.000229,0.015734,4,7 | |
0.031300,5.652710,0.000066,-0.004289,5,7 | |
0.031300,5.652246,0.000016,0.001204,6,7 | |
0.031300,5.652375,0.000007,-0.000335,7,7 | |
0.031300,5.652339,0.000001,0.000093,8,7 | |
0.031300,5.730278,0.013790,0.533465,1,8 | |
0.031300,5.624700,0.004889,-0.105577,2,8 | |
0.031300,5.661125,0.001555,-0.069152,3,8 | |
0.031300,5.649449,0.000510,0.024749,4,8 | |
0.031300,5.653293,0.000170,-0.007832,5,8 | |
0.031300,5.652038,0.000052,0.002589,6,8 | |
0.031300,5.652449,0.000020,-0.000844,7,8 | |
0.031300,5.652315,0.000003,0.000277,8,8 | |
0.031300,5.752040,0.017640,0.655265,1,9 | |
0.031300,5.611255,0.007268,-0.140786,2,9 | |
0.031300,5.667169,0.002625,-0.084871,3,9 | |
0.031300,5.646702,0.000996,0.035448,4,9 | |
0.031300,5.654458,0.000376,-0.012711,5,9 | |
0.031300,5.651555,0.000138,0.004853,6,9 | |
0.031300,5.652647,0.000055,-0.001812,7,9 | |
0.031300,5.652237,0.000017,0.000682,8,9 | |
0.031300,5.774187,0.021558,0.777387,1,10 | |
0.031300,5.595041,0.010136,-0.179146,2,10 | |
0.031300,5.675413,0.004083,-0.098774,3,10 | |
0.031300,5.642370,0.001763,0.047329,4,10 | |
0.031300,5.656544,0.000745,-0.018869,5,10 | |
0.031300,5.650565,0.000313,0.008195,6,10 | |
0.031300,5.653106,0.000136,-0.003438,7,10 | |
0.031300,5.652030,0.000054,0.001465,8,10 | |
0.052700,4.348048,0.001841,-0.279152,1,0 | |
0.052700,4.355567,0.000115,0.007519,2,0 | |
0.052700,4.356039,0.000007,0.007991,3,0 | |
0.052700,4.356067,0.000000,0.000500,4,0 | |
0.052700,4.356068,0.000000,0.000030,5,0 | |
0.052700,4.356068,0.000000,0.000001,6,0 | |
0.052700,4.356068,0.000000,0.000000,7,0 | |
0.052700,4.356068,0.000000,0.000000,8,0 | |
0.052700,4.347955,0.001863,-0.179270,1,1 | |
0.052700,4.355954,0.000026,0.007999,2,1 | |
0.052700,4.356069,0.000000,0.008114,3,1 | |
0.052700,4.356070,0.000000,0.000116,4,1 | |
0.052700,4.356070,0.000000,0.000001,5,1 | |
0.052700,4.356070,0.000000,0.000000,6,1 | |
0.052700,4.356070,0.000000,0.000000,7,1 | |
0.052700,4.356070,0.000000,0.000000,8,1 | |
0.052700,4.351639,0.001017,-0.075549,1,2 | |
0.052700,4.356228,0.000037,0.004589,2,2 | |
0.052700,4.356066,0.000000,0.004427,3,2 | |
0.052700,4.356072,0.000001,-0.000156,4,2 | |
0.052700,4.356072,0.000001,0.000006,5,2 | |
0.052700,4.356072,0.000001,0.000000,6,2 | |
0.052700,4.356072,0.000001,0.000000,7,2 | |
0.052700,4.356072,0.000001,0.000000,8,2 | |
0.052700,4.358222,0.000494,0.031010,1,3 | |
0.052700,4.355888,0.000041,-0.002334,2,3 | |
0.052700,4.356089,0.000005,-0.002133,3,3 | |
0.052700,4.356072,0.000001,0.000184,4,3 | |
0.052700,4.356073,0.000001,-0.000016,5,3 | |
0.052700,4.356073,0.000001,0.000001,6,3 | |
0.052700,4.356073,0.000001,0.000000,7,3 | |
0.052700,4.356073,0.000001,0.000000,8,3 | |
0.052700,4.366874,0.002481,0.139699,1,4 | |
0.052700,4.354587,0.000340,-0.012288,2,4 | |
0.052700,4.356273,0.000047,-0.010602,3,4 | |
0.052700,4.356048,0.000005,0.001462,4,4 | |
0.052700,4.356078,0.000002,-0.000195,5,4 | |
0.052700,4.356074,0.000001,0.000026,6,4 | |
0.052700,4.356075,0.000002,-0.000003,7,4 | |
0.052700,4.356074,0.000001,0.000000,8,4 | |
0.052700,4.376784,0.004756,0.249584,1,5 | |
0.052700,4.352132,0.000904,-0.024652,2,5 | |
0.052700,4.356787,0.000165,-0.019997,3,5 | |
0.052700,4.355947,0.000028,0.003815,4,5 | |
0.052700,4.356099,0.000007,-0.000688,5,5 | |
0.052700,4.356071,0.000001,0.000125,6,5 | |
0.052700,4.356076,0.000002,-0.000023,7,5 | |
0.052700,4.356076,0.000002,0.000004,8,5 | |
0.052700,4.387180,0.007142,0.359956,1,6 | |
0.052700,4.348500,0.001737,-0.038680,2,6 | |
0.052700,4.357799,0.000397,-0.029382,3,6 | |
0.052700,4.355679,0.000089,0.007179,4,6 | |
0.052700,4.356169,0.000023,-0.001630,5,6 | |
0.052700,4.356056,0.000003,0.000377,6,6 | |
0.052700,4.356081,0.000003,-0.000087,7,6 | |
0.052700,4.356076,0.000002,0.000020,8,6 | |
0.052700,4.399709,0.010018,0.436115,1,7 | |
0.052700,4.343072,0.002983,-0.056636,2,7 | |
0.052700,4.359630,0.000818,-0.040079,3,7 | |
0.052700,4.355082,0.000226,0.012010,4,7 | |
0.052700,4.356355,0.000066,-0.003274,5,7 | |
0.052700,4.356000,0.000016,0.000918,6,7 | |
0.052700,4.356100,0.000007,-0.000256,7,7 | |
0.052700,4.356072,0.000001,0.000072,8,7 | |
0.052700,4.414412,0.013394,0.500806,1,8 | |
0.052700,4.335430,0.004738,-0.078983,2,8 | |
0.052700,4.362641,0.001509,-0.051772,3,8 | |
0.052700,4.353912,0.000495,0.018483,4,8 | |
0.052700,4.356786,0.000165,-0.005855,5,8 | |
0.052700,4.355847,0.000051,0.001935,6,8 | |
0.052700,4.356155,0.000020,-0.000631,7,8 | |
0.052700,4.356054,0.000003,0.000206,8,8 | |
0.052700,4.430502,0.017087,0.566914,1,9 | |
0.052700,4.325488,0.007020,-0.105014,2,9 | |
0.052700,4.367128,0.002539,-0.063374,3,9 | |
0.052700,4.351872,0.000963,0.026384,4,9 | |
0.052700,4.357652,0.000364,-0.009477,5,9 | |
0.052700,4.355488,0.000133,0.003616,6,9 | |
0.052700,4.356302,0.000054,-0.001349,7,9 | |
0.052700,4.355996,0.000017,0.000508,8,9 | |
0.052700,4.447784,0.021055,0.634184,1,10 | |
0.052700,4.313046,0.009876,-0.134738,2,10 | |
0.052700,4.373423,0.003984,-0.074361,3,10 | |
0.052700,4.348580,0.001719,0.035535,4,10 | |
0.052700,4.359233,0.000727,-0.014189,5,10 | |
0.052700,4.354739,0.000305,0.006159,6,10 | |
0.052700,4.356648,0.000133,-0.002585,7,10 | |
0.052700,4.355840,0.000052,0.001101,8,10 | |
0.032400,5.542126,0.002417,-0.384274,1,0 | |
0.032400,5.554704,0.000153,0.012578,2,0 | |
0.032400,5.555504,0.000009,0.013379,3,0 | |
0.032400,5.555552,0.000001,0.000848,4,0 | |
0.032400,5.555555,0.000000,0.000051,5,0 | |
0.032400,5.555555,0.000000,0.000003,6,0 | |
0.032400,5.555555,0.000000,0.000000,7,0 | |
0.032400,5.555555,0.000000,0.000000,8,0 | |
0.032400,5.538802,0.003016,-0.287623,1,1 | |
0.032400,5.555288,0.000048,0.016487,2,1 | |
0.032400,5.555555,0.000000,0.016754,3,1 | |
0.032400,5.555557,0.000000,0.000269,4,1 | |
0.032400,5.555558,0.000000,0.000002,5,1 | |
0.032400,5.555558,0.000000,0.000000,6,1 | |
0.032400,5.555558,0.000000,0.000000,7,1 | |
0.032400,5.555558,0.000000,0.000000,8,1 | |
0.032400,5.541021,0.002616,-0.185367,1,2 | |
0.032400,5.556036,0.000087,0.015015,2,2 | |
0.032400,5.555542,0.000002,0.014522,3,2 | |
0.032400,5.555561,0.000001,-0.000475,4,2 | |
0.032400,5.555560,0.000001,0.000018,5,2 | |
0.032400,5.555560,0.000001,-0.000001,6,2 | |
0.032400,5.555560,0.000001,0.000000,7,2 | |
0.032400,5.555560,0.000001,0.000000,8,2 | |
0.032400,5.548048,0.001351,-0.078364,1,3 | |
0.032400,5.556186,0.000113,0.008138,2,3 | |
0.032400,5.555509,0.000008,0.007461,3,3 | |
0.032400,5.555566,0.000002,-0.000619,4,3 | |
0.032400,5.555561,0.000001,0.000052,5,3 | |
0.032400,5.555562,0.000001,-0.000004,6,3 | |
0.032400,5.555562,0.000001,0.000000,7,3 | |
0.032400,5.555562,0.000001,0.000000,8,3 | |
0.032400,5.559203,0.000657,0.032827,1,4 | |
0.032400,5.555073,0.000087,-0.004130,2,4 | |
0.032400,5.555629,0.000013,-0.003574,3,4 | |
0.032400,5.555555,0.000000,0.000482,4,4 | |
0.032400,5.555565,0.000002,-0.000064,5,4 | |
0.032400,5.555564,0.000002,0.000009,6,4 | |
0.032400,5.555563,0.000001,-0.000001,7,4 | |
0.032400,5.555564,0.000002,0.000000,8,4 | |
0.032400,5.573791,0.003282,0.147390,1,5 | |
0.032400,5.552142,0.000614,-0.021649,2,5 | |
0.032400,5.556184,0.000113,-0.017606,3,5 | |
0.032400,5.555452,0.000019,0.003311,4,5 | |
0.032400,5.555586,0.000005,-0.000598,5,5 | |
0.032400,5.555561,0.000001,0.000109,6,5 | |
0.032400,5.555566,0.000002,-0.000020,7,5 | |
0.032400,5.555565,0.000002,0.000004,8,5 | |
0.032400,5.591159,0.006409,0.264734,1,6 | |
0.032400,5.546944,0.001550,-0.044215,2,6 | |
0.032400,5.557528,0.000355,-0.033630,3,6 | |
0.032400,5.555113,0.000080,0.008169,4,6 | |
0.032400,5.555671,0.000021,-0.001858,5,6 | |
0.032400,5.555542,0.000002,0.000430,6,6 | |
0.032400,5.555573,0.000003,-0.000098,7,6 | |
0.032400,5.555565,0.000002,0.000022,8,6 | |
0.032400,5.610670,0.009921,0.384282,1,7 | |
0.032400,5.539153,0.002952,-0.071517,2,7 | |
0.032400,5.560051,0.000809,-0.050619,3,7 | |
0.032400,5.554311,0.000224,0.015158,4,7 | |
0.032400,5.555917,0.000065,-0.004134,5,7 | |
0.032400,5.555470,0.000015,0.001159,6,7 | |
0.032400,5.555594,0.000007,-0.000323,7,7 | |
0.032400,5.555561,0.000001,0.000090,8,7 | |
0.032400,5.631693,0.013705,0.505280,1,8 | |
0.032400,5.528575,0.004856,-0.103118,2,8 | |
0.032400,5.564141,0.001545,-0.067552,3,8 | |
0.032400,5.552738,0.000507,0.024163,4,8 | |
0.032400,5.556492,0.000169,-0.007649,5,8 | |
0.032400,5.555266,0.000052,0.002528,6,8 | |
0.032400,5.555668,0.000020,-0.000824,7,8 | |
0.032400,5.555536,0.000003,0.000270,8,8 | |
0.032400,5.653629,0.017653,0.627254,1,9 | |
0.032400,5.515146,0.007274,-0.138484,2,9 | |
0.032400,5.570148,0.002627,-0.083481,3,9 | |
0.032400,5.550015,0.000997,0.034870,4,9 | |
0.032400,5.557645,0.000376,-0.012504,5,9 | |
0.032400,5.554790,0.000138,0.004774,6,9 | |
0.032400,5.555863,0.000055,-0.001781,7,9 | |
0.032400,5.555460,0.000017,0.000670,8,9 | |
0.032400,5.675891,0.021660,0.749491,1,10 | |
0.032400,5.498949,0.010189,-0.176943,2,10 | |
0.032400,5.578351,0.004103,-0.097540,3,10 | |
0.032400,5.545712,0.001772,0.046764,4,10 | |
0.032400,5.559714,0.000749,-0.018637,5,10 | |
0.032400,5.553808,0.000314,0.008096,6,10 | |
0.032400,5.556318,0.000137,-0.003396,7,10 | |
0.032400,5.555254,0.000054,0.001446,8,10 | |
0.055338,4.248918,0.000483,-0.209452,1,0 | |
0.055338,4.250849,0.000029,0.001931,2,0 | |
0.055338,4.250967,0.000002,0.002048,3,0 | |
0.055338,4.250973,0.000000,0.000124,4,0 | |
0.055338,4.250974,0.000000,0.000007,5,0 | |
0.055338,4.250974,0.000000,0.000000,6,0 | |
0.055338,4.250974,0.000000,0.000000,7,0 | |
0.055338,4.250974,0.000000,0.000000,8,0 | |
0.055338,4.248163,0.000661,-0.110232,1,1 | |
0.055338,4.250939,0.000008,0.002777,2,1 | |
0.055338,4.250975,0.000000,0.002812,3,1 | |
0.055338,4.250975,0.000000,0.000036,4,1 | |
0.055338,4.250975,0.000000,0.000000,5,1 | |
0.055338,4.250975,0.000000,0.000000,6,1 | |
0.055338,4.250975,0.000000,0.000000,7,1 | |
0.055338,4.250975,0.000000,0.000000,8,1 | |
0.055338,4.250685,0.000068,-0.007673,1,2 | |
0.055338,4.250988,0.000003,0.000303,2,2 | |
0.055338,4.250977,0.000001,0.000292,3,2 | |
0.055338,4.250977,0.000001,-0.000011,4,2 | |
0.055338,4.250977,0.000001,0.000000,5,2 | |
0.055338,4.250977,0.000001,0.000000,6,2 | |
0.055338,4.250977,0.000001,0.000000,7,2 | |
0.055338,4.250977,0.000001,0.000000,8,2 | |
0.055338,4.255609,0.001090,0.097226,1,3 | |
0.055338,4.250576,0.000094,-0.005033,2,3 | |
0.055338,4.251012,0.000009,-0.004596,3,3 | |
0.055338,4.250975,0.000000,0.000400,4,3 | |
0.055338,4.250978,0.000001,-0.000034,5,3 | |
0.055338,4.250978,0.000001,0.000003,6,3 | |
0.055338,4.250978,0.000001,-0.000000,7,3 | |
0.055338,4.250978,0.000001,0.000000,8,3 | |
0.055338,4.262097,0.002617,0.203752,1,4 | |
0.055338,4.249445,0.000360,-0.012652,2,4 | |
0.055338,4.251184,0.000049,-0.010914,3,4 | |
0.055338,4.250952,0.000005,0.001507,4,4 | |
0.055338,4.250984,0.000002,-0.000200,5,4 | |
0.055338,4.250979,0.000001,0.000027,6,4 | |
0.055338,4.250979,0.000001,-0.000004,7,4 | |
0.055338,4.250979,0.000001,0.000000,8,4 | |
0.055338,4.270294,0.004545,0.291109,1,5 | |
0.055338,4.247310,0.000862,-0.022985,2,5 | |
0.055338,4.251643,0.000158,-0.018651,3,5 | |
0.055338,4.250860,0.000027,0.003551,4,5 | |
0.055338,4.251002,0.000007,-0.000641,5,5 | |
0.055338,4.250977,0.000001,0.000116,6,5 | |
0.055338,4.250981,0.000002,-0.000021,7,5 | |
0.055338,4.250981,0.000002,0.000004,8,5 | |
0.055338,4.281301,0.007134,0.352104,1,6 | |
0.055338,4.243596,0.001735,-0.037705,2,6 | |
0.055338,4.252660,0.000397,-0.028642,3,6 | |
0.055338,4.250594,0.000089,0.006998,4,6 | |
0.055338,4.251071,0.000023,-0.001589,5,6 | |
0.055338,4.250961,0.000003,0.000367,6,6 | |
0.055338,4.250986,0.000003,-0.000085,7,6 | |
0.055338,4.250981,0.000002,0.000020,8,6 | |
0.055338,4.294084,0.010141,0.414905,1,7 | |
0.055338,4.238124,0.003023,-0.055960,2,7 | |
0.055338,4.254493,0.000828,-0.039591,3,7 | |
0.055338,4.249998,0.000229,0.011874,4,7 | |
0.055338,4.251256,0.000067,-0.003236,5,7 | |
0.055338,4.250906,0.000016,0.000908,6,7 | |
0.055338,4.251004,0.000007,-0.000252,7,7 | |
0.055338,4.250977,0.000001,0.000071,8,7 | |
0.055338,4.308435,0.013517,0.479244,1,8 | |
0.055338,4.230633,0.004785,-0.077802,2,8 | |
0.055338,4.257449,0.001523,-0.050986,3,8 | |
0.055338,4.248849,0.000500,0.018216,4,8 | |
0.055338,4.251680,0.000166,-0.005769,5,8 | |
0.055338,4.250756,0.000051,0.001907,6,8 | |
0.055338,4.251058,0.000020,-0.000622,7,8 | |
0.055338,4.250959,0.000003,0.000204,8,8 | |
0.055338,4.324146,0.017213,0.544973,1,9 | |
0.055338,4.220892,0.007076,-0.103254,2,9 | |
0.055338,4.261849,0.002559,-0.062296,3,9 | |
0.055338,4.246847,0.000971,0.025955,4,9 | |
0.055338,4.252531,0.000366,-0.009319,5,9 | |
0.055338,4.250402,0.000134,0.003556,6,9 | |
0.055338,4.251203,0.000054,-0.001328,7,9 | |
0.055338,4.250903,0.000017,0.000500,8,9 | |
0.055338,4.341019,0.021182,0.611834,1,10 | |
0.055338,4.208709,0.009942,-0.132310,2,10 | |
0.055338,4.268016,0.004009,-0.073003,3,10 | |
0.055338,4.243618,0.001730,0.034910,4,10 | |
0.055338,4.254082,0.000731,-0.013934,5,10 | |
0.055338,4.249668,0.000307,0.006050,6,10 | |
0.055338,4.251543,0.000134,-0.002539,7,10 | |
0.055338,4.250749,0.000053,0.001081,8,10 | |
") | |
adjusted_kadlec_blend$source <- "Modified to meet A(B - 1) =1" | |
kadlec <- rbind(adjusted_kadlec_blend, original_kadlec_blend) | |
rm(adjusted_kadlec_blend, original_kadlec_blend) | |
subt <- TeX(r"(Blending factor $0 \Rightarrow \frac{1}{\sqrt{x}} (A - B x (\frac{1}{\sqrt{x}})^2)$, $10 \Rightarrow \frac{A}{\sqrt{x}} (B - x (\frac{1}{\sqrt{x}})^2)$)") | |
kadlec %>% | |
ggplot(aes(x = iters, y = error, color = factor(alpha), group = alpha)) + | |
geom_line() + facet_wrap(~source) + | |
labs(title = "Approximation stalls without modified values", | |
subtitle = subt, | |
color = "Blending\nfactor", | |
y = "Relative error") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment