How to change TH1F binning?

Hello,

is there a way to change the binning of an existing TH1F?

Thanks

TH1::Rebin
TH1::RebinAxis