View Source Annealing.Controller.Cooling (annealing v0.5.0-beta.1)

Contains function clauses that cool material state.

Summary

Functions

Allows different cooling strategies to be used: linear, exponential, logarithmic, or a custom function.

Types

annealing_state()

@type annealing_state() :: Annealing.Controller.state()

cooling_strategy()

@type cooling_strategy() ::
  {:linear, float()}
  | {:exponential, float()}
  | {:logarithmic, float()}
  | {:custom, function()}

Functions

cooldown(state)

@spec cooldown(annealing_state()) :: annealing_state()

Allows different cooling strategies to be used: linear, exponential, logarithmic, or a custom function.