-
Notifications
You must be signed in to change notification settings - Fork 46
/
MemoPower03_design.R
37 lines (26 loc) · 1016 Bytes
/
MemoPower03_design.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# MemoPower03_design.R, 1 Sep 16
#
# Data from:
# "Look It up" or "Do the Math": An Energy, Area, and Timing Analysis of Instruction Resuse and Memoization
# Daniel Citron and Dror G. Feitelson
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
# library("DoE.base")
# Need to fiddle with layout to get plot.design to generate
# labels for everything
layout(matrix(1:1, nrow=1), widths=ESEUR_default_width*1.3, heights=ESEUR_default_height*0.8, TRUE)
# plot_wide()
Memo=read.csv(paste0(ESEUR_dir, "experiment/MemoPower03.csv.xz"), as.is=TRUE)
# plot.design makes odd behavior decisions if the explanatory
# variables are not factors.
Memo$size=as.factor(Memo$size)
Memo$associativity=as.factor(Memo$associativity)
Memo$mapping=as.factor(Memo$mapping)
Memo$replacement=as.factor(Memo$replacement)
plot.design(cint ~ size+associativity+mapping+replacement, data=Memo,
cex=1.2, cex.lab=1.0, cex.axis=0.9, col=point_col,
xlab="", ylab="Mean cint\n")