This is a question for a university assignment.
I was given three algorithms for calculating the GCD, which I have already done. My problem is getting the Rprof results for the graph, so I can compare them side by side.
From the little understanding I have about Rprof, summaryRprof and plot is that Rprof is used as follows:
Rprof() #To start
#functions here
Rprof(NULL) #TO end
summaryRprof() # to print results
I understand that a graph has many different types of inputs, x and y values, and something called a data frame, which I assume is a fancy word for a table. and draw different lines and things that I need to use: http://www.harding.edu/fmccown/r/
that I canβt figure out how to get the summaryRprof results of the plot () function.
> Rprof(filename="RProfOut2.out", interval=0.0001)
> gcdBruteForce(10000, 33)
[1] 1
> gcdEuclid(10000, 33)
[1] 1
> gcdPrimeFact(10000, 33)
[1] 1
> Rprof(NULL)
> summaryRprof()
?????plot????
, prorutool proftools, .
, , (system.time(gcdFunction (10 100)))
.