noiseLevel: variance of the signal between two breakpoints
dim: dimension of the profile
minLength: minimum length of region between breakpoints by default minLength = 0
Returns
a list with elements
profile: the profile (a length by dim matrix)
bkp: the list of breakpoints positions (the last position at the left of a breakpoint)
Details
Generate a random profile (vector) of length length, with nBkp
breakpoints randomly chosen. Between two breakpoints, the profile is constant, uniformly chosen between 0 and 1, and a Gaussian noice of variance noiseLevel is added.