Comments (5)
Thanks - The number of simulations is specified by nsim, which defaults to 99, so this is not strictly a bug. However I guess what you're saying is that most users would expect 'envelope' to set nsim = length(simulate) when 'simulate' is a list of point patterns and nsim is not given. I guess we can do that. Thanks for pointing it out. A
from spatstat.
On second thoughts, this might be complicated. Sometimes a second set of simulations is required (eg global=TRUE and X is a point process). Then we want nsim + nsim2 = length(simulate). I'm not sure how to guess the user's intention easily. A
from spatstat.
In my usecase I want to compute envelopes from the pre-defined set of simulations. This always(?) excludes global =TRUE as
- when X is 'ppm' the average can't be guaranteed to be correct for 'simulate'
- when X is 'ppp' there is no model specified for deriving the average
from spatstat.
The following is possible, where the 'simulate' argument has to have 2 * nsim entries:
a <- rStrauss(100, 0.5, 0.05, nsim=38)
E <- envelope(cells, Gest, simulate=a, nsim=19, global=TRUE)
from spatstat.
imho it would be better behaviour if the nsim
and nsim2
would adapt to length(a)
. It would solve the original issue, and would not waste patterns as in e.g.
a <- rStrauss(100, 0.5, 0.05, nsim=38)
E <- envelope(cells, Gest, simulate=a, nsim=15, global=TRUE)
which assumes nsim2=nsim
and leaves over the 38-15*2=8
patterns. Another reasonable scenario is the case "here's a bunch of patterns, compute the global average from 10 of them", i.e.
E <- envelope(cells, Gest, simulate=a, nsim2=10, global=TRUE)
which crashes as nsim=99
is fixed and nsim+nsim2 > length(a)
.
from spatstat.
Related Issues (20)
- object ‘markvario’ is not exported by 'namespace:spatstat'
- object ‘markvario’ is not exported by 'namespace:spatstat' HOT 3
- object ‘CDF’ is not exported by 'namespace:spatstat' HOT 3
- 'as.ppp' is not an exported object from 'namespace:spatstat' HOT 7
- Scaling of linim objects HOT 3
- Error when simulating determinantal point process HOT 1
- Bug in visual debugger of rmh ? HOT 3
- I cannot update spatstat HOT 1
- Pool rhohat estimates HOT 1
- object ‘as.data.frame.ppp’ is not exported by 'namespace:spatstat' HOT 5
- wrong result for the dclf statistic in dclf.test()? HOT 2
- some wrong distances in delaunayDistance() ?? HOT 2
- R code for the spatstat book HOT 2
- Install issue with spatstat.geom on R version 4.3.1 HOT 2
- rLGCP depends on RandomFieldsUtils which is no longer supported HOT 2
- Jest does not return Fest and Gest HOT 2
- Jest ignores eps HOT 6
- is.subset.owin does not recognise real subset HOT 7
- Negative values for lambda using density() HOT 3
- vignette('shapefiles') not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spatstat.