fitCatEndPts: Get catenary parameters for given endpoints and length

Description Usage Arguments Value Note Author(s) Examples

View source: R/fitCatEndPts.R

Description

Takes endpoints in data frame and length and returns parameters of catenary

Usage

1
fitCatEndPts(endpoints, L)

Arguments

endpoints

2x2 data frame with first column x second column is y

L

length

Value

vector of parameters

Note

February 11 2013

Author(s)

Jono Tuke, Matthew Roughan

Examples

1
2
3
4
5
x <- c(-1,1)
y <- c(2,2)
endpoints <- data.frame(x=x,y=y)
L <- 3
fitCatEndPts(endpoints,L)

Example output

Attaching package: 'catenary'

The following object is masked from 'package:methods':

    show

Optim worked
[1] "optim worked"
          c1           c2       lambda 
6.164588e-01 1.309301e-07 3.782554e-01 

catenary documentation built on May 2, 2019, 10:51 a.m.