Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1033034 // normalizeDoubles

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3906L/22K).

static double[] normalizeDoubles(double[] l) {
  ret normalizeDoubles(l, 1);
}

static double[] normalizeDoubles(double[] l, double targetMax) {
  double factor = normalizationFactor(l, targetMax);
  ret doubleMul(l, factor);
}

Author comment

Began life as a copy of #1025060

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033034
Snippet name: normalizeDoubles
Eternal ID of this version: #1033034/3
Text MD5: b521ffce07253bf0b5eac608e8fd847f
Transpilation MD5: 1a9c98a2ce85267984fce3086b9b99a3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 17:29:43
Source code size: 234 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 202
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033041 - normalizationFactor
#1033042 - doubleMul