ptds2021/pkghw4g3: Estimate and plot

This package allows to obtain an approximation of the area of a shape as well as to represent it. The estimate_area () function simulates the x and y coordinates of a point B and assigns the latter a value of "true" if the point is located in the line of the shape so inside the shape and "false" if it's not the case. The area of the shape is estimated by adding the points that had a "true" value, then dividing the whole by the total number of points.Then the plot_area () function gets a value used to plot the shape as well as other points not belonging to the shape.

Getting started

Package details

MaintainerEnzo Beijer <Enzo.Beijer@unil.ch>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("ptds2021/pkghw4g3")
ptds2021/pkghw4g3 documentation built on Dec. 22, 2021, 9:58 a.m.