bright: Checking For Bright Images

View source: R/userFunctions.R

brightR Documentation

Checking For Bright Images

Description

Using a logistic regression to find coefficients, uses the result to compute a probability of the imageMatrix being #'bright (392 observations) with McFadden Pseudo- $R^2$ Value 0.2573778

Usage

bright(
  imageMatrix,
  beta0 = -2.774327,
  beta1 = 51.91687,
  cutoffProbability = 0.5,
  NADefault = 0
)

Arguments

imageMatrix

imageMatrix points representing the brightness of that pixel

beta0

The intercept of a logistic regression default is for magnetograms

beta1

The slope of the logistic regression default is for magnetograms

cutoffProbability

The probability cut off for the decision of an imageMatrix being bright

NADefault

The default value set to NA's in the matrix

Value

The decision of the image being bright (based off of the cutoffProbability)


Bott-binc/magnetoPackage2020 documentation built on Oct. 12, 2024, 7:49 p.m.