Description Usage Arguments Value Examples

View source: R/IVExtractResult.R

This function carries out IV feature extraction, by calculating steps then extract features for each step.

1 2 | ```
IVExtractResult(dat, k = 7, crt = 0.2, num = 75, crtvalb = 0.3,
plot.option = F)
``` |

`dat` |
A dataframe of IV curve. The variable names should be "V" for voltage, and "I" for current. And rank with increasing voltage. |

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

`crt` |
A value to set for how large of regression coefficient change rate we use as not changing much. This is due to the value of IV curve, suggestion is to test this function with several IV curves for your data and find the proper value. The default is 0.2. |

`num` |
A value of number of data points. The default is 75. |

`crtvalb` |
A value to set the change of I(current) we want to use as changing very much (to detect the end of IV curve). Suggestion is to test this function with several IV curves for your data and find the proper value. The default is 0.3 |

`plot.option` |
True/False, it plots the IV curve. The default is false. |

A list of the following items:

"step": a value that shows the number of steps in the IV curve

"Isc": short-circuit current, which is the current through the solar cell when the voltage across the solar cell is zero.

"Rsh": shunt resistance, which is the inverse slope of the IV curve near Isc.

"Voc": open-circuit voltage, which is the maximum voltage from a solar cell and occurs at zero current.

"Rs": series resistance, which is the inverse slope of the IV curve near Voc.

"Pmp": maximum power for a solar cell/PV module.

"Imp": current at maximum power.

"Vmp": voltage at maximum power.

"FF": fill factor, which is the ratio of maximum power from a solar cell to the product of Voc and Isc.

"Cutoff": a string of values (voltage) that shows the change point indicating steps. NA means that the IV curve has only one step and there is no change points.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
#this IV curve is of step=1
#load the data provided in the package
data(IV_step1)
IV1 <- data.frame(IV_step1)
result <- IVExtractResult(IV1,plot.option=FALSE)
#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 <- IVExtractResult(IV2,plot.option=FALSE)
#use the IV curve with step=3
data(IV_step3)
IV3 <- data.frame(IV_step3)
IVExtractResult(IV3,plot.option=FALSE)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.