# `Omni.Answer.Predicate`
[🔗](https://github.com/aaronrussell/omni/blob/v2.0.0/lib/omni/answer/predicate.ex#L1)

The answer to an `Omni.Question.Predicate`.

```elixir
%Omni.Answer.Predicate{probability: 0.91}
```

## Struct fields

- `:probability` - the probability, from 0 to 1, that the statement is
  true

# `t`

```elixir
@type t() :: %Omni.Answer.Predicate{probability: float()}
```

The answer to a yes/no question.

# `new`

```elixir
@spec new(Enumerable.t()) :: t()
```

Creates a predicate answer from a keyword list or map of fields.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
