Skip to main content
. 2017 Mar 21;17(3):642. doi: 10.3390/s17030642
Algorithm 5: LoBSs’ risk assessment algorithm
Input: SourceFilePath, ProfessorFilePath, WeightFilePath, InitialRisk, Confidence, Difficulty, NumberofProfessor.
Output: VaRR.
1. Assign the parameters of InitialRisk, Confidence, Difficulty, NumberofProfessor;
2. Read SourceFile Using BufferedReader;
3. the ObjectiveRisk Ioj is get by judging TraceP,then, push into the corresponding stack;
4. Read ProfessorFile using BufferedReader;
5. The files in ProfessorFile are stored with the type of List <double []>, the attack Shannon entropy is calculated;
6. Calculating the subjective risk Isj;
7. Read WeightFile using BufferedReader, the comprehensive risk Icj is calculated based on the weight between subjective risk and objective risk;
8. The rate of risk impact is calculated by Qj=Prj×rj;
9. VaRR is calculated based on VaR;
10. Return VaRR.