Model of the stochastic gravitational-wave background due to core collapse to black holes