2 * Portions Copyright 2001 Sun Microsystems, Inc.
3 * Portions Copyright 1999-2001 Language Technologies Institute,
4 * Carnegie Mellon University.
5 * All Rights Reserved. Use is subject to license terms.
7 * See the file "license.terms" for information on usage and
8 * redistribution of this file, and for a DISCLAIMER OF ALL
11 package com.sun.speech.freetts;
14 * Maintains the mean duration and standard deviation about a phone.
15 * These are meant to be used by the code that calculates segment
16 * durations via statistical methods, and are paired with the phone
17 * by <code>PhoneDurations</code>.
21 public class PhoneDuration {
28 * The standard deviation from the mean.
30 private float standardDeviation;
33 * Creates a new <code>PhoneDuration</code> with the given mean
34 * and standard deviation.
36 * @param mean mean duration, typically in seconds
37 * @param standardDeviation standardDeviation from the mean
39 public PhoneDuration(float mean, float standardDeviation) {
41 this.standardDeviation = standardDeviation;
45 * Gets the mean. The return value is typically in seconds.
49 public float getMean() {
54 * Gets the standard deviation from the mean.
56 * @return the standard deviation from the mean
58 public float getStandardDeviation() {
59 return standardDeviation;