# Class: AnalysisData

## AnalysisData

#### new AnalysisData()

  AnalysisData structure, used as a container for all face analysis results. This structure is passed as a parameter to the VisageFaceAnalyser.analyseImage() or VisageFaceAnalyser.analyseStream() method. Both methods store analysis results into the structure.
  If an operation was not performed (turned off via options) or failed, the respective validity boolean will return false and estimations will contain the default value.

### Methods

#### getAge() → {number}

  get the age value from AnalysisData

  ##### Returns:

  result of age estimation
  Type
    number

#### getAgeValid() → {number}

  check if age value is valid

  ##### Returns:

  boolean flag returning whether age estimation has been successful or not
  Type
    number

#### getGender() → {number}

  get the gender value from AnalysisData

  ##### Returns:

  1 for MALE gender
  0 for FEMALE gender
  Type
    number

#### getGenderValid() → {number}

  check if gender value is valid

  ##### Returns:

  boolean flag returning whether gender estimation has been successful or not
  Type
    number

#### getEmotionProbabilities() → {Array}

  get an array representing emotions from AnalysisData

  ##### Returns:

  result of emotion estimation, See: VFAEmotionIndices
  Type
    Array

#### getEmotionsValid()

  check if emotion value is valid (if the calculation was valid)

  ##### Returns:

  boolean flag returning whether emotion estimation has been successful or not