Skip to content

Commit ab5f8e2

Browse files
author
dhiginbotham
committed
Updated dat files.
1 parent 31fed4b commit ab5f8e2

4 files changed

Lines changed: 81 additions & 19 deletions

File tree

Power-Series/data/PRAD.dat

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Q2(GeV2/c2) GE dGE
2+
0.00790435 0.999295 0.000226169
3+
0.012875 0.998054 0.000327208
4+
0.0190242 0.997979 0.000440119
5+
0.0263684 0.99773 0.000564046
6+
0.0316128 0.995386 0.000344603
7+
0.0348699 0.997223 0.000698296
8+
0.0445541 0.994514 0.000842377
9+
0.0514877 0.993587 0.000507705
10+
0.0554199 0.993713 0.000995877
11+
0.0674657 0.992831 0.00115846
12+
0.0760697 0.990565 0.000694686
13+
0.0806893 0.987654 0.00132984
14+
0.0950589 0.98856 0.00150973
15+
0.105421 0.987664 0.000904872
16+
0.11063 0.98374 0.00169804
17+
0.127338 0.980631 0.00189448
18+
0.139387 0.982618 0.00113732
19+
0.154068 0.980602 0.00162444
20+
0.178067 0.978698 0.00139172
21+
0.194474 0.969711 0.00195821
22+
0.221449 0.971109 0.00166763
23+
0.239514 0.970108 0.00231671
24+
0.26952 0.964009 0.0019645
25+
0.289057 0.96136 0.00269927
26+
0.322267 0.958946 0.00228196
27+
0.343273 0.960918 0.00310608
28+
0.379556 0.950858 0.00261942
29+
0.402031 0.946984 0.0035361
30+
0.4416 0.945822 0.00297667
31+
0.465169 0.946496 0.00398828
32+
0.508132 0.935678 0.00335294
33+
0.532762 0.935251 0.00446375
34+
0.604917 0.935283 0.00496115
35+
0.614183 0.92707 0.00332218
36+
0.6813 0.915125 0.00548047
37+
0.775052 0.90622 0.00407501
38+
0.953374 0.881387 0.00488426
39+
1.14996 0.868514 0.00575053
40+
1.36426 0.840808 0.00666317
41+
1.59555 0.822354 0.00761786
42+
1.8445 0.801601 0.00860429
43+
2.10985 0.795157 0.00961182
44+
2.39179 0.765816 0.0106459
45+
2.69001 0.749816 0.0116946

Power-Series/data/park.dat

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Test Data From Kijun Park
2+
1.2500e-02 4.20800753e-01 1.15049633e-02
3+
1.7500e-02 3.93666571e-01 1.30981921e-02
4+
2.2500e-02 3.81220854e-01 1.34126011e-02
5+
2.7500e-02 3.68224314e-01 1.37290240e-02
6+
3.2500e-02 3.44132413e-01 1.37151250e-02
7+
3.7500e-02 3.32971286e-01 1.44902500e-02
8+
4.2500e-02 3.18970437e-01 1.53267661e-02
9+
4.7500e-02 3.04855619e-01 1.63178134e-02
10+
5.2500e-02 2.89261062e-01 1.71898353e-02
11+
5.7500e-02 2.75038111e-01 1.81024761e-02
12+
6.2500e-02 2.72934994e-01 1.94750503e-02
13+
6.7500e-02 2.59238019e-01 2.03586253e-02
14+
7.2500e-02 2.46670965e-01 2.12533274e-02
15+
7.7500e-02 2.33314422e-01 2.20380721e-02
16+
8.2500e-02 2.27192643e-01 2.31022357e-02
17+
8.7500e-02 2.16559797e-01 2.38960303e-02
18+
9.2500e-02 2.10059491e-01 2.48646248e-02
19+

Power-Series/data/park2.dat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Test Data From Kijun Park
2+
1.2500e-02 4.20800753e-01 1.15049633e-02
3+
1.7500e-02 3.93666571e-01 1.30981921e-02
4+
2.2500e-02 3.81220854e-01 1.34126011e-02
5+
2.7500e-02 3.68224314e-01 1.37290240e-02
6+
3.2500e-02 3.44132413e-01 1.37151250e-02
7+
3.7500e-02 3.32971286e-01 1.44902500e-02
8+
4.2500e-02 3.18970437e-01 1.53267661e-02
9+
4.7500e-02 3.04855619e-01 1.63178134e-02
10+

Power-Series/maclaurin.R

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,22 @@
2121
# of statistical models for a given set of data. Since AIC estimates the quality
2222
# of each model, AIC provides a tool for model selection even for non-nested
2323
# models.
24-
#
25-
# In this code, we make use of the Akaike information criterion to decide
26-
# the Maclaurin series to use for describing a given set of data.
27-
#
28-
# Pick the data to read
29-
#
30-
# readinteger <- function()
31-
#{
32-
# n <- readline(prompt="Enter an integer: ")
33-
# if(!grepl("^[0-9]+$",n))
34-
# {
35-
# return(readinteger())
36-
# }
3724
#
38-
# return(as.integer(n))
39-
#}
40-
#print(readinteger())
41-
#print(n)
42-
#
4325
# Read the data
4426
#
4527
#data <- read.table("data/ge-mainz14.dat", header=TRUE , col.names = c("x", "y", "dy"))
46-
data <- read.table("data/ge-lowQ2.dat", header=TRUE , col.names = c("x", "y", "dy"))
28+
#data <- read.table("data/ge-lowQ2.dat", header=TRUE , col.names = c("x", "y", "dy"))
29+
#data <- read.table("data/park2.dat", header=TRUE , col.names = c("x", "y", "dy"))
4730
#data <- read.table("data/default.dat", header=TRUE, col.names = c("x", "y", "dy"))
4831
#data <- read.table("data/PRAD-projected.dat", header=TRUE, col.names = c("x", "y", "dy"))
32+
data <- read.table("data/PRAD.dat", header=TRUE , col.names = c("x", "y", "dy"))
4933
#data <- read.table("data/ge.dat", header=FALSE , col.names = c("x", "y", "dy"))
5034
#data <- read.table("data/Bevington.dat", header=TRUE , col.names = c("x", "y", "dy"))
5135
#
36+
message("")
37+
message("Data has been read.")
38+
message("")
39+
5240
# Define the mininum model.
5341
#
5442
min.model <- lm(data$y ~ data$x, weight=1/data$dy^2)

0 commit comments

Comments
 (0)