16e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato/*
235aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li * Copyright (C) 2008-2009 The Android Open Source Project
36e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato *
46e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * Licensed under the Apache License, Version 2.0 (the "License");
56e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * you may not use this file except in compliance with the License.
66e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * You may obtain a copy of the License at
76e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato *
86e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato *      http://www.apache.org/licenses/LICENSE-2.0
96e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato *
106e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * Unless required by applicable law or agreed to in writing, software
116e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * distributed under the License is distributed on an "AS IS" BASIS,
126e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * See the License for the specific language governing permissions and
146e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato * limitations under the License.
156e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato */
166e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato
17db567c390bd56c05614eaa83c02dbb99f97ad9ccRomain Guypackage android.gesture;
186e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato
196e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onoratopublic class Prediction {
2035aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    public final String name;
2135aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li
2235aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    public double score;
2335aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li
2435aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    Prediction(String label, double predictionScore) {
2535aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li        name = label;
2635aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li        score = predictionScore;
2735aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    }
2835aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li
2935aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    @Override
306e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato    public String toString() {
3135aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li        return name;
3235aa84b1f9f5e42dd00cb66df993ed1628c8963bYang Li    }
336e93a3db56d6add29b43077718a4cad9ccfc047fJoe Onorato}
34