catenary: Creates a catenary object

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
2
catenary(c1 = 1, c2 = 0, lambda = 0, x0 = -1, x1 = 1,
  endpoints = NULL, L = NULL, type = "natural")

Arguments

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

Value

an instance of catenary class

Author(s)

Jono Tuke, Matthew Roughan

Examples

 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)

jonotuke/catenary documentation built on May 19, 2019, 8:36 p.m.