def percentile(self, percentile):
out = scipy.percentile(self.value, percentile, axis=<NUM_LIT:0>)<EOL>if self.name is not None:<EOL><INDENT>name = '<STR_LIT>'.format(self.name, _ordinal(percentile))<EOL><DEDENT>else:<EOL><INDENT>name = None<EOL><DEDENT>return FrequencySeries(out, epoch=self.epoch, channel=self.channel,<EOL>name=name, f0=self.f0, df=self.df,<EOL>frequencies=(hasattr(self, '<STR_LIT>') and<EOL>self.frequencies or None))<EOL>
Calculate a given spectral percentile for this `Spectrogram`.

        Parameters
        ----------
        percentile : `float`
            percentile (0 - 100) of the bins to compute

        Returns
        -------
        spectrum : `~gwpy.frequencyseries.FrequencySeries`
            the given percentile `FrequencySeries` calculated from this
            `SpectralVaraicence`