Research Article
[Retracted] Analysis of the Clinical Effect of Music Combined with Hypnosis on Labor Analgesia Based on Data Mining
Algorithm 1
The algorithm designed in this paper.
| Input: user-defined threshold Presets, minimum support for MinEnergy, maximum support for MaxEnergy minimum regulator δ | | User-defined SleepTime | | Output: The final achieved energy value CurrEnergy, which is less than or equal to MaxEnergy and greater than or equal to MinEnergy | (1) | Initialize CurrEnergy to MinEnergy; | (2) | Send a command to the hardware via the serial port to set the current output energy to CurrEnergy; | (3) | If MinEnergy <=Presets <=MaxEnergy then | (4) | While Presets - CurrEnergy acuity delta then | (5) | CurrEnergy = CurrEnergy + (Presets - CurrEnergy)/2; | (6) | Send a command to the hardware via the serial port to set the current output energy to CurrEnergy; | (7) | And Presets-CurrEnergy≥ δ then if contractions occur | (8) | CurrEnergy adds δ units of energy. | (9) | Send a command to the hardware via the serial port to set the current output energy to CurrEnergy; The endif | (11) | Sleep Time and then enter the next cycle; Prevent discomfort caused by excessive energy changes | (12) | End while | (13) | Output CurrEnergy value |
|