algo/IBDT.py
def ternaryClassification(self) -> None:
        """3-class Bayesian posterior comparison.

        :return:
        """
        #Class that maximizes posterior probability
        maxPosterior = self.cur.fixation.posterior
        self.cur.base.classification = MOVEMENT['FIXATION']


        if self.cur.saccade.posterior > maxPosterior:
            self.cur.base.classification = MOVEMENT['SACCADE']
            maxPosterior = self.cur.saccade.posterior

        if self.cur.pursuit.posterior > maxPosterior:
            self.cur.base.classification = MOVEMENT['PURSUIT']



        #Catch up saccades as saccades
        if self.cur.base.v > self.sMean:
            self.cur.base.classification = MOVEMENT['SACCADE']
3-class Bayesian posterior comparison.

        :return:
        
3-class Bayesian posterior comparison.
3 - class Bayesian posterior comparison .
def ternaryClassification(self) -> None:
        maxPosterior = self.cur.fixation.posterior
        self.cur.base.classification = MOVEMENT['FIXATION']
        if self.cur.saccade.posterior > maxPosterior:
            self.cur.base.classification = MOVEMENT['SACCADE']
            maxPosterior = self.cur.saccade.posterior
        if self.cur.pursuit.posterior > maxPosterior:
            self.cur.base.classification = MOVEMENT['PURSUIT']
        if self.cur.base.v > self.sMean:
            self.cur.base.classification = MOVEMENT['SACCADE']
def ternaryClassification ( self ) -> None : maxPosterior = self . cur . fixation . posterior self . cur . base . classification = MOVEMENT [ 'FIXATION' ] if self . cur . saccade . posterior > maxPosterior : self . cur . base . classification = MOVEMENT [ 'SACCADE' ] maxPosterior = self . cur . saccade . posterior if self . cur . pursuit . posterior > maxPosterior : self . cur . base . classification = MOVEMENT [ 'PURSUIT' ] if self . cur . base . v > self . sMean : self . cur . base . classification = MOVEMENT [ 'SACCADE' ]
3-class Bayesian posterior comparison.
3 - class Bayesian posterior comparison .
"""3-class Bayesian posterior comparison.

        :return:
        """ #Class that maximizes posterior probability #Catch up saccades as saccades
None
self