Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/find_limit_star.R
Find the limits of a Stars density distributions
1 2 | find_limit_star(Star, UrbanLayerName, Threshold = 50,
SlopeThreshold = 0.01, SlopeWindow = 3)
|
Star |
a Star object that contains columns "BeamId" and "SegmentId", as created by create_star() |
UrbanLayerName |
the name of the column which holds the density values |
Threshold |
a threshold under which the density is considered nonurban |
SlopeThreshold |
the threshold under which the in SlopeWindow calculated mean of the slope is considered to be small |
SlopeWindow |
a forward looking search window in which the mean slope is evaluated |
Splits the dataframe of a Star
into its constituent beams (identified by their "BeamId").
Each beams UrbanLayerName
column is then evaluated to find a plausible segmentation point, which can be considered the urban limit.
The criterium for the point being: First point at which
the value is lower than "Threshold"
and
the mean slope over the next SlopeWindow
data points is lower than SlopeThreshold
The limits are then used to create a logical vector of length(Star)
, indicating for each segment of the Star whether it is urban.
If for at least one of the beams, no point satisfies both conditions, NA is returned.
Logical vector
Johannes Mast
find_limit
,
split_star_into_beams
1 | find_limit_star(Star,UrbanLayerName,Threshold=50,SlopeThreshold=0.01,SlopeWindow=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.