Explains Crime Indexes At This Website

Crime Index is an estimation of overall level of crime in a given city or a country. Crime Levels up to 50 are reasonable, and crime index levels more than 100 are too high.

Safety index is, on the other way, quite opposite of crime index. If the city has a high safety index, it is considered very safe.

Actual formulas to calculate indexes is a subject to change and at this moment, quite complex empirical formulas are used. Those formulas as written in the Java programming language are as follows:

```    //assumes all input values are in the range [-2 , 2], where -2 means very low and 2 means very high
protected void calculateIndex() {
index = new CrimeIndex();
double overall = 0.0;

overall += 2 * getIndexPartPreCalc(level_of_crime);
overall += getIndexPartPreCalc(crime_increasing);
overall += getIndexPartPreCalc(-safe_alone_daylight);
overall += getIndexPartPreCalc(-safe_alone_night);
overall += getIndexPartPreCalc(worried_home_broken);
overall += getIndexPartPreCalc(worried_mugged_robbed);
overall += getIndexPartPreCalc(worried_car_stolen);
overall += getIndexPartPreCalc(worried_things_car_stolen);
overall += getIndexPartPreCalc(worried_attacked);
overall += getIndexPartPreCalc(worried_insulted);
overall += getIndexPartPreCalc(worried_skin_ethnic_religion);
overall += getIndexPartPreCalc(problem_drugs);
overall += getIndexPartPreCalc(problem_property_crimes);
overall += getIndexPartPreCalc(problem_violent_crimes);
overall += getIndexPartPreCalc(problem_corruption_bribery);

index.main = overall / 16;
index.exp = index.main / 2 + ((index.main > 20) ? Math.pow(index.main - 20, 1.65) : 0.0);

double safety = 0.0;
safety += 2 * getIndexPartPreCalc(-level_of_crime);
safety += getIndexPartPreCalc(-crime_increasing);
safety += getIndexPartPreCalc(safe_alone_daylight);
safety += getIndexPartPreCalc(safe_alone_night);
safety += getIndexPartPreCalc(-worried_home_broken);
safety += getIndexPartPreCalc(-worried_mugged_robbed);
safety += getIndexPartPreCalc(-worried_car_stolen);
safety += getIndexPartPreCalc(-worried_things_car_stolen);
safety += getIndexPartPreCalc(-worried_attacked);
safety += getIndexPartPreCalc(-worried_insulted);
safety += getIndexPartPreCalc(-worried_skin_ethnic_religion);
safety += getIndexPartPreCalc(-problem_drugs);
safety += getIndexPartPreCalc(-problem_property_crimes);
safety += getIndexPartPreCalc(-problem_violent_crimes);
safety += getIndexPartPreCalc(-problem_corruption_bribery);

index.safety = safety / 16;

}

```