IVsteps: Calculate steps of IV curve

Description Usage Arguments Value Examples

View source: R/IVsteps.R

Description

Calculate steps of IV curve

Usage

1
IVsteps(I, V, k = 7, plot.option = FALSE)

Arguments

I

A vector of current values from IV data frame

V

A vector of voltage values from IV data frame

k

The number of equally-spaced values to supply as starting values for the breakpoints. The default is 7.

plot.option

True/False, it plots the IV curve. The default is false.

Value

a list of the following items:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#this IV curve is of step=1
#load the data provided in the package
data(IV_step1)
IV1 <- data.frame(IV_step1)
result <- IVsteps(IV1$I,IV1$V)
#use the IV curve with step=2
data(IV_step2)
IV2 <- data.frame(IV_step2)
#with plot.option=TRUE, IV curve and steps are ploted
result2 <- IVsteps(IV2$I,IV2$V,plot.option=TRUE)

ddiv documentation built on May 2, 2019, 8:24 a.m.