IVsteps {ddiv}R Documentation

Calculate steps of IV curve

Description

Calculate steps of IV curve

Usage

IVsteps(I, V, k = 7, diff_slp = 0.01, 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.

diff_slp

The difference between the slope on the left and on the right of the change point. The default is 0.01.

plot.option

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

Value

a list of the following items:

Examples

#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)


[Package ddiv version 0.1.1 Index]