Description Usage Arguments Value Author(s) Examples
First constructor that takes c1, c2, lambda, x0 and x1 Second constructor takes endpoints and either length or gives natural or maximum catenary (one that just touches the ground)
Contains methods to fit catenary to observed points, also can compare to parabola.
1 2 |
c1 |
shape parameter |
c2 |
x-location parameter |
lambda |
y-location parameter |
x0 |
left point |
x1 |
right point |
endpoints |
2 x 2 matrix or data frame with column x and y and rows left and right |
L |
length of catenary |
type |
max or natural if length not given |
an instance of catenary
class
Jono Tuke, Matthew Roughan
1 2 3 4 5 6 7 8 9 10 11 12 13 | cat1 <- catenary()
plot(cat1)
cat2 <- catenary(c1=1,c2=2,lambda=3,x0=0,x1=4)
plot(cat2)
x <- c(-1,1)
y <- c(2,2)
endpoints <- data.frame(x=x,y=y)
cat3 <- catenary(endpoints=endpoints,L=5)
plot(cat3)
cat4 <- catenary(endpoints=endpoints,type='natural')
plot(cat4)
cat5 <- catenary(endpoints=endpoints,type='max')
plot(cat5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.