geomscale / rvolesti Goto Github PK
View Code? Open in Web Editor NEWPractical volume computation and sampling in high dimensions. R interface of volesti C++ library.
License: GNU Lesser General Public License v3.0
Practical volume computation and sampling in high dimensions. R interface of volesti C++ library.
License: GNU Lesser General Public License v3.0
Following this documentation, when trying to estimate the volume of a 3-dimensional cube with GenCube()
function I get this error:
Error in GenCube(3, "H") : could not find function "GenCube"
The result of running help("GenCube")
:
No documentation for ‘GenCube’ in specified packages and libraries: you could try ‘??GenCube’
When trying to install the package or create it's documentation, a library specific error is generating. To replicate this within RStudio, one can execute the following two commands:
Rcpp::compileAttributes()
roxygen2::roxygenize(roclets="rd")
want to run different sampling algorithms in a 100-dimensional cube. I get the output for "RDHR" and "CDHR" but for the "john" (john walk) I get the following error:
Error: Unknown walk type!
My code is as below and I follow page 24 of Rvolesti documentation pdf. on sample_points()
function.
library(ggplot2)
library(volesti)
for (step in c(1,20,100,150)){
for (walk in c("RDHR", "CDHR", "john")){
P <- gen_cube(3, 'H')
points1 <- sample_points(P, n=1000, random_walk = list("walk"=walk, "walk_length"= step))
g<-plot(ggplot(data.frame( x=points1[1,], y=points1[2,] )) +
geom_point( aes(x=x, y=y, color=walk)) + coord_fixed(xlim = c(-1,1),
ylim = c(-1,1)) + ggtitle(sprintf("walk length=%s", step, walk)))
Sys.sleep(10)
}
}
This issue deals with the upgrade to a newer version of volesti. This upgrade should be done by following the steps bellow.
The currect README should be updated (at least) on the following points:
cd src/include
when you update the submodulevolesti
and Rvolesti
I get the warning:
Warning message: object ‘CsparseMatrix’ is not exported by 'namespace:Matrix'
when running the followings in the R terminal:
devtools::test()
devtools::run_examples()
I run the above commands in the /test folder of the project.
We have to write CI yaml scripts that test the R package against various platforms and R versions.
The scripts from volesti package can be used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.