findtilt: Find the ends of the lens, and the slope of the line...

Description Usage Arguments Examples

View source: R/findtilt.R

Description

Finds the ends of the lens, and the slope of the line connecting them

Usage

1
findtilt(mu, ml)

Arguments

mu
ml

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (mu, ml) 
{
    b <- coef(mu)
    a <- coef(ml)
    x <- rep(0, 2)
    x[1] <- findx(a, b, 1)
    x[2] <- findx(a, b, -1)
    y <- a[1] + a[2] * x + a[3] * x^2
    return(data.frame(x = x, y = y))
  }

phewson/PhilsAngle documentation built on May 25, 2019, 2:54 a.m.