[**axiom v0.51.1**](../../../README.md)

***

[axiom](../../../README.md) / [scorers/aggregations](../README.md) / AllTrialsPass

# Variable: AllTrialsPass()

> `const` **AllTrialsPass**: (`opts`) => [`Aggregation`](../type-aliases/Aggregation.md)\<`"pass^k"`\> = `PassHatK`

User-friendly alias for PassHatK.
Returns 1 if all trials pass, 0 otherwise.

Returns 1 if all trial scores meet or exceed the threshold, 0 otherwise.
Also known as "pass^k" in evaluation literature.

## Parameters

### opts?

#### threshold?

`number`

The minimum score required for all trials to pass

## Returns

[`Aggregation`](../type-aliases/Aggregation.md)\<`"pass^k"`\>

## Example

```typescript
Scorer('consistency', fn, { aggregation: PassHatK({ threshold: 0.9 }) })
// scores [0.95, 0.92, 0.91] => 1 (all >= 0.9)
// scores [0.95, 0.85, 0.91] => 0 (0.85 < 0.9)
```

## Example

```typescript
Scorer('consistency', fn, { aggregation: AllTrialsPass({ threshold: 0.9 }) })
```
