BerryMielke function

Calculate IOV