compSPI / simSPI

Generative Models
9 stars 10 forks source link

ctf bfactor #21

Open geoffwoollard opened 2 years ago

geoffwoollard commented 2 years ago

RE https://github.com/harshit-gupta-cor/simSPI/blob/linear_simulator/simSPI/linear_simulator/modules.py#L235

How exactly does the code below make a good bfactor?

        if self.config.bfactor == 0:
            decay = (
                np.sqrt(-np.log(self.config.valueNyquist))
                * 2.0
                * self.config.pixel_size
            )
            envelope = torch.exp(-self.frequency ** 2 * decay ** 2 * self.r2)
geoffwoollard commented 2 years ago

see initial discussion in this PR https://github.com/compSPI/simSPI/pull/20#discussion_r759614238

geoffwoollard commented 2 years ago

by "default", I mean that when b=0, we enter this control flow