[**@s4ai/core Documentation v0.3.23**](../../../../README.md)

***

[@s4ai/core Documentation](../../../../modules.md) / [@s4ai/core/autonomous](../README.md) / QuantumDecisionTrees

# Class: QuantumDecisionTrees

Defined in: autonomous/quantum-decision-trees.js:77

## Extends

- [`Revenue`](../../business/variables/Revenue.md)

## Constructors

### Constructor

> **new QuantumDecisionTrees**(`maxDepth?`, `maxBreadth?`): `QuantumDecisionTree`

Defined in: autonomous/quantum-decision-trees.js:78

#### Parameters

##### maxDepth?

`number` = `5`

##### maxBreadth?

`number` = `5`

#### Returns

`QuantumDecisionTree`

#### Overrides

`EventEmitter.constructor`

## Properties

### convergenceThreshold

> **convergenceThreshold**: `number`

Defined in: autonomous/quantum-decision-trees.js:85

***

### exploredPaths

> **exploredPaths**: `any`[]

Defined in: autonomous/quantum-decision-trees.js:83

***

### maxBreadth

> **maxBreadth**: `number`

Defined in: autonomous/quantum-decision-trees.js:82

***

### maxDepth

> **maxDepth**: `number`

Defined in: autonomous/quantum-decision-trees.js:81

***

### optimalPath

> **optimalPath**: `any`

Defined in: autonomous/quantum-decision-trees.js:84

***

### parallelExplorations

> **parallelExplorations**: `number`

Defined in: autonomous/quantum-decision-trees.js:86

***

### root

> **root**: [`DecisionNode`](../../../../autonomous/quantum-decision-trees/classes/DecisionNode.md) \| `null`

Defined in: autonomous/quantum-decision-trees.js:80

***

### totalDecisions

> **totalDecisions**: `number`

Defined in: autonomous/quantum-decision-trees.js:87

## Methods

### buildTree()

> **buildTree**(`rootDecision`, `decisionOptions`): `Promise`\<`void`\>

Defined in: autonomous/quantum-decision-trees.js:90

#### Parameters

##### rootDecision

`any`

##### decisionOptions

`any`

#### Returns

`Promise`\<`void`\>

***

### calculatePathConfidence()

> **calculatePathConfidence**(`path`): `any`

Defined in: autonomous/quantum-decision-trees.js:197

#### Parameters

##### path

`any`

#### Returns

`any`

***

### calculatePathScore()

> **calculatePathScore**(`path`): `number`

Defined in: autonomous/quantum-decision-trees.js:187

#### Parameters

##### path

`any`

#### Returns

`number`

***

### convergeOnOptimalPath()

> **convergeOnOptimalPath**(): `Promise`\<`any`\>

Defined in: autonomous/quantum-decision-trees.js:204

#### Returns

`Promise`\<`any`\>

***

### expandNode()

> **expandNode**(`parentNode`, `options`): `Promise`\<`void`\>

Defined in: autonomous/quantum-decision-trees.js:102

#### Parameters

##### parentNode

`any`

##### options

`any`

#### Returns

`Promise`\<`void`\>

***

### exploreAllPaths()

> **exploreAllPaths**(): `Promise`\<`any`[]\>

Defined in: autonomous/quantum-decision-trees.js:149

#### Returns

`Promise`\<`any`[]\>

***

### generateNextOptions()

> **generateNextOptions**(`currentDecision`): `string`[]

Defined in: autonomous/quantum-decision-trees.js:136

#### Parameters

##### currentDecision

`any`

#### Returns

`string`[]

***

### getDecisionPath()

> **getDecisionPath**(): \{ `confidence`: `string`; `decisions`: `any`; `estimatedOutcome`: `string`; `executionSequence`: `any`; `expectedScore`: `any`; \} \| `null`

Defined in: autonomous/quantum-decision-trees.js:249

#### Returns

\{ `confidence`: `string`; `decisions`: `any`; `estimatedOutcome`: `string`; `executionSequence`: `any`; `expectedScore`: `any`; \} \| `null`

***

### getTreeMetrics()

> **getTreeMetrics**(): `object`

Defined in: autonomous/quantum-decision-trees.js:235

#### Returns

`object`

##### convergenceThreshold

> **convergenceThreshold**: `number`

##### maxBreadth

> **maxBreadth**: `number`

##### maxDepth

> **maxDepth**: `number`

##### optimalConfidence

> **optimalConfidence**: `any`

##### optimalPath

> **optimalPath**: `any`

##### optimalScore

> **optimalScore**: `any`

##### parallelExplorations

> **parallelExplorations**: `number`

##### pathsExplored

> **pathsExplored**: `number`

##### totalNodes

> **totalNodes**: `number`

***

### visualizeTree()

> **visualizeTree**(`depth?`): `string`

Defined in: autonomous/quantum-decision-trees.js:259

#### Parameters

##### depth?

`number` = `2`

#### Returns

`string`
