Class Biometry.Emotion

ru.yandex.speechkit

java.lang.Object ⇽ Biometry.Emotion

public  class  Biometry.Emotion  implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable
Enclosing Class:
Biometry

The estimates of whether the user is experiencing one of the following emotions: happiness, annoyance, anger, calmness, or fun.

Methods

Emotion(final float angerScore, final float dissappScore, final float joyScore, final float neutralScore, final float pleasureScore)

Creates an object of the Emotion class.

Emotion(@NonNull final android.os.Parcel parcel)

Creates an object of the Emotion class.

intdescribeContents()
floatgetAngerScore()

Returns an estimate of whether the current emotion is anger.

floatgetDissappScore()

Returns an estimate of whether the current emotion is annoyance.

floatgetJoyScore()

Returns an estimate of whether the current emotion is happiness.

floatgetNeutralScore()

Returns an estimate of whether the current emotion is calmness.

floatgetPleasureScore()

Returns an estimate of whether the current emotion is fun.

StringtoString()
voidwriteToParcel(android.os.Parcel parcel, int i)

Fields

final Parcelable.CreatorCREATOR

Method Detail

Emotion

public Emotion (final float angerScore, final float dissappScore, final float joyScore, final float neutralScore, final float pleasureScore)

Creates an object of the Emotion class.

Parameters:
angerScore

Estimates whether the current emotion is anger.

dissappScore

Estimates whether the current emotion is annoyance.

joyScore

Estimates whether the current emotion is happiness.

neutralScore

Estimates whether the current emotion is calmness.

pleasureScore

Estimates whether the current emotion is fun.

Emotion

public Emotion (@NonNull final android.os.Parcel parcel)

Creates an object of the Emotion class.

Parameters:
parcel

A service object for state serialization.

describeContents

public int describeContents ()

getAngerScore

public float getAngerScore ()

Returns an estimate of whether the current emotion is anger.

Returns:

Estimates whether the current emotion is anger.

getDissappScore

public float getDissappScore ()

Returns an estimate of whether the current emotion is annoyance.

Returns:

Estimates whether the current emotion is annoyance.

getJoyScore

public float getJoyScore ()

Returns an estimate of whether the current emotion is happiness.

Returns:

Estimates whether the current emotion is happiness.

getNeutralScore

public float getNeutralScore ()

Returns an estimate of whether the current emotion is calmness.

Returns:

Estimates whether the current emotion is calmness.

getPleasureScore

public float getPleasureScore ()

Returns an estimate of whether the current emotion is fun.

Returns:

Estimates whether the current emotion is fun.

toString

public String toString ()

writeToParcel

public void writeToParcel (android.os.Parcel parcel, int i)

Field Detail

CREATOR

public static CREATOR = new Parcelable.Creator() { public Emotion createFromParcel(android.os.Parcel parcel) { return new Emotion(parcel); } public Emotion[] newArray(int size) { return new Emotion[size]; } }