Commit dc4b3255 authored by Rafael Garcia Leiva's avatar Rafael Garcia Leiva

Initial commit

parents
Application of the theory of nescience for measuring how well we understand current software platform and how to improve software quality.
For more information, please refer to my book http://mathematicsunknown.com/
# Read data
Data <- read.csv("~/Projects/Nescience/Theory_Examples/SQLite/SQLite_consolidated.csv")
# Remove outliers
Data <- Data[(Data$Errors!=60),]
# Compute redundancy
Data$Redundancy <- (Data$Size - Data$bzip) / Data$Size
plot(Data$Redundancy, ylab="Redundancy", main="Redundancy", type="l")
# Normalize the error
Data$NormError <- min(Data$Redundancy) + ( (Data$Error - min(Data$Error)) * (max(Data$Redundancy) - min(Data$Redundancy)) ) / (max(Data$Error) - min(Data$Error))
plot(Data$NormError, ylab="NormError", main="Normalized Error", type="l")
# Compute the nescience
Data$Nescience <- sqrt(Data$Redundancy^2 + Data$NormError^2)
plot(Data$Nescience, ylab="Nescience", main="Nescience", type="l")
# Plot a linear regression
Data$X <- 1:nrow(Data)
plot(Data$X, Data$Nescience, col = "blue", main = "Nescience of SQLite", xaxt = "n",
abline(lm(Data$Nescience ~ Data$X)), cex = 1.3, pch = 16, xlab = "SQLite Version", ylab = "Nescience")
axis(1, at=1:nrow(Data), labels=Data$Version)
Version,Date,Errors,Lines,Size,gzip,bzip
3.6.18,2009-09-11,14,118890,3962914,1032907,794249
3.6.19,2009-10-14,23,120936,4042367,1054226,808976
3.6.20,2009-11-04,23,121634,4065199,1059393,811791
3.6.21,2009-12-07,15,122579,4096924,1066023,815243
3.6.22,2010-01-05,10,122669,4106415,1068788,817680
3.6.23,2010-03-09,19,123060,4117570,1071519,818646
3.7.0,2010-07-21,23,132250,4436571,1157709,882575
3.7.1,2010-08-21,2,133406,4486765,1170324,892572
3.7.2,2010-08-23,1,133420,4487051,1170379,892799
3.7.3,2010-10-08,5,135395,4556955,1187993,901789
3.7.4,2010-12-07,4,137709,4637934,1207147,920146
3.7.5,2011-01-28,1,138127,4655575,1211874,924401
3.7.6,2011-04-12,10,143566,4837677,1258642,963443
3.7.7,2011-06-23,1,145044,4896686,1275800,976896
3.7.8,2011-09-19,11,147756,4986505,1299529,992544
3.7.9,2011-11-01,38,148281,5003185,1303309,996648
3.7.10,2012-01-16,6,151137,5099818,1325862,1009517
3.7.11,2012-03-20,6,151809,5124032,1332672,1014356
3.7.12,2012-05-14,6,156459,5277681,1373563,1045690
3.7.13,2012-06-11,0,155422,5243955,1363662,1039787
3.7.14,2012-09-03,1,154750,5221716,1354969,1037580
3.7.15,2012-12-12,10,156376,5278684,1370529,1047893
3.7.16,2013-03-18,11,158229,5342321,1387353,1059573
3.7.17,2013-05-20,12,154709,5239834,1360813,1039160
3.8.0,2013-08-26,15,155806,5272445,1368641,1044799
3.8.1,2013-10-17,2,158033,5346349,1386001,1057550
3.8.2,2013-12-06,2,159824,5412809,1403809,1072772
3.8.3,2014-02-03,5,160858,5451005,1414123,1079532
3.8.4,2014-03-11,60,162498,5509412,1427331,1091195
3.8.5,2014-06-04,9,163303,5540937,1435595,1098422
3.8.6,2014-08-15,14,164349,5580429,1445507,1109634
3.8.7,2014-10-17,6,167571,5697716,1475793,1134711
3.8.8,2015-01-16,7,169984,5784756,1498230,1153912
3.8.9,2015-04-08,1,171491,5841860,1513680,1167831
3.8.10,2015-05-07,3,172097,5864249,1519361,1171436
3.8.11,2015-07-27,3,173622,5920823,1534907,1184677
3.9.0,2015-10-14,4,174630,5958102,1546986,1192140
3.9.1,2015-10-16,1,174630,5958102,1546986,1192140
3.9.2,2015-11-02,2,174650,5958957,1547261,1193465
3.9.3,2016-03-31,0,174660,5959229,1547310,1192942
3.10.0,2016-01-06,2,176518,6019190,1560863,1202997
3.10.1,2016-01-13,1,176549,6020510,1561167,1202941
3.10.2,2016-01-20,1,176553,6020592,1561196,1202554
3.11.0,2016-02-15,3,177294,6047679,1569538,1208722
3.11.1,2016-03-03,1,177294,6047679,1569538,1208722
3.12.0,2016-03-29,1,178430,6089725,1580250,1215502
3.12.1,2016-04-08,1,178464,6091054,1580610,1216220
3.12.2,2016-04-18,2,178479,6091607,1580828,1216633
3.13.0,2016-05-18,3,180366,6160690,1598904,1226818
3.14.0,2016-08-08,3,181787,6212656,1609394,1232859
3.14.1,2016-08-11,0,181807,6213472,1609650,1232661
3.14.2,2016-09-12,2,181871,6215606,1610345,1234248
3.15.0,2016-10-14,6,183643,6279308,1628422,1245807
3.15.1,2016-11-04,2,183701,6281355,1628656,1246010
3.15.2,2016-11-28,4,183722,6282129,1628837,1246816
3.16.0,2017-01-02,1,185206,6334302,1642682,1256502
3.16.1,2017-01-03,1,185250,6336086,1643134,1256342
3.16.2,2017-01-06,2,185298,6338697,1643778,1256640
3.17.0,2017-02-13,2,185685,6352692,1647997,1260203
3.18.0,2017-03-28,2,187443,6411251,1663994,1272925
3.19.0,2017-05-22,5,188113,6434469,1670494,1277875
3.19.1,2017-05-24,1,188123,6434939,1670598,1277827
3.19.2,2017-05-25,1,188133,6435421,1670742,1277522
3.19.3,2017-06-08,1,188139,6435701,1670818,1277546
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment