Schnittstelle für Opdf implementieren (jaHMM)

=fire=

Erfahrenes Mitglied
Hallo,

ich bin dabei eine Aufgabe mit jaHMM zu lösen, leider hänge ich zurzeit an einem Punkt.

Implementieren Sie ferner die Schnittstelle Opdf<ObservationDiphone> als OpdfConcatSynth mit einem Konstruktor
wie unten angegeben und entsprechenden Attributen:

OpdfConcatSynth(String diphone, float energy, float pitch, float duration);

Ich habe es folgendermaßen versucht:

Code:
    public class OpdfConcatSynth implements Opdf<ObservationDiphone> {

        public OpdfConcatSynth(String diphone, float energy, float pitch, float duration) {
            //ObservationDiphone OD = new ObservationDiphone(diphone,energy,pitch,duration);
            //new Opdf<ObservationDiphone>(diphone,energy,pitch,duration);
        }

        @Override
        public void fit(ObservationDiphone... arg0) {
            // TODO Auto-generated method stub
            
        }

        @Override
        public void fit(Collection<? extends ObservationDiphone> arg0) {
            // TODO Auto-generated method stub
            
        }

        @Override
        public void fit(ObservationDiphone[] arg0, double[] arg1) {
            // TODO Auto-generated method stub
            
        }

        @Override
        public void fit(Collection<? extends ObservationDiphone> arg0,
                double[] arg1) {
            // TODO Auto-generated method stub
            
        }

        @Override
        public ObservationDiphone generate() {
            // TODO Auto-generated method stub
            return null;
        }

        @Override
        public double probability(ObservationDiphone arg0) {
            // TODO Auto-generated method stub
            return 0;
        }

        @Override
        public String toString(NumberFormat arg0) {
            // TODO Auto-generated method stub
            return null;
        }
    }

Leider kommt die Meldung bei OpdfConcatSynth:
Code:
Exception CloneNotSupportedException in throws clause of Object.clone() is not compatible with Opdf<ObservationDiphone>.clone()


Bin mir nicht sicher ob ich es richtig verstanden habe?!
 
Zurück