Scripts Index
Tools and Utilities Development Tools  

Random Weighted Selection

download download home home   report broken
important script information
company name:
Adam Gripton
license: Shareware
minimum requirements: No special requirements.
functional limitations:
Random Weighted Selection description
Randomly pick n from size(h)>=nelements, biased with linear weights asgiven in h, without replacement.Works with infinity and zero weightingentries, but always picks themsequentially in this case.Syntax: Y=randweightedpick(h,n)Example:randweightedpick([2,0,5,Inf,3,Inf,0],7)returns [4,6,...,2,7] all the time as[4,6] are infinities and [2,7] arezeros; in between, the results will bea permutation of [1,3,5]:[...,3,5,1,...] 30.0% of the time {5/(2+3+5) * 3/(2+3)}[...,3,1,5,...] 20.0% of the time {5/(2+3+5) * 2/(2+3)}[...,5,3,1,...] 21.4% of the time {3/(2+3+5) * 5/(2+5)}[...,1,3,5,...] 12.5% of the time {2/(2+3+5) * 5/(3+5)}[...,5,1,3,...] 8.6% of the time {3/(2+3+5) * 2/(2+5)}[...,1,5,3,...] 7.5% of the time {2/(2+3+5) * 3/(3+5)}Y returns the vector of indicescorresponding to the weights in h.
Similar scripts
Rob Keyboard (Popularity: ) : This plugin is produced for holding on keyboard when pairing program. You can type "shift ctrl K" to lock intellJ by a Dialog with amusing words. You can lock intellJ by password, with configging password enabled.At first, you should add ...
CIE Coordinate Calculator (Popularity: ) : This software is for calculating the CIE chromaticity co-ordinates of phosphor materials using the photo luminescence data. The software also shows the position of the co-ordinates in chromaticity diagram and expected color of the material. Please note that the color ...
New Dream Coder for Oracle (Popularity: ) : This tool is an code generator for Oracle. While fetching large tables this tool reduces usage of memory. Some features of this tool are, it has new password ecryption, procedure builder, session monitor, SQL templates etc., It increases execution times ...
Foreign Exchange Options (Popularity: ) : fxoptions( S0, X, rd, rf, T, vol, style)Valuation of European and American call and put options on foreign exchange using Garman-Kohlhagen model.European option prices are given by an exact formula (Garman-Kohlhagen).American option prices are approximated using both binomial and trinomial ...
Anti Cut and Paste (Popularity: ) : This utility is helpful for programmers that allows them to search programming language source code's text fragments which have been copied and pasted. Some key features of this tool are, this tool supports both command line and Graphical User Interface ...
AC Protect Standard (Popularity: ) : This utility is used for avoiding hackers from cracking your software using special techniques called anti crack. It works with all windows platforms. Some features of this tool are, this tool compresses ocx, scr, exe, dll and more, dynamic encrypt ...
Bokai Barcode Image generator (Popularity: ) : This tool is used for barcode generator and which has an ActiveX control for printing barcodes. This tool contains more than twenty five barcode types. This tool supports only ActiveX control programs. Users can customize barcode parameters and design of ...
VBcodePrint (Popularity: ) : This Add-In to Microsoft Visual Basic 6 significantly enhances its source code printing capabilities. You can print any part of your VB project's source code from within the VB's development environment. / You can create and save your own output ...
Use Matlab Editor to Write and Run Ansys Program. (Popularity: ) : You don't have to switch your screen between Matlab, Ansys and UltraEdit or PSPad anymore, when you doing FEM-Analysis.You can use MEditor to write your Ansys APDL program and use the excellent feature of MEditor to structure your Code: Cell-Function, ...
VBAcodePrint (Popularity: ) : This add-in enables you to print Microsoft VBA source code in color of your applications across the entire Microsoft Office 2000 suite of applications: Word, Excel, Outlook, Access, PowerPoint, and FrontPage and any other VBA enabled software. / You can ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
SolSuite 2002 - Solitaire Card Games Suite (Popularity: ) : SolSuite 2002 is a high-quality collection of 337 different Solitaire Card Games with an excellent interface providing good graphics and animation. All your favorite Card Games are implemented: Klondike, FreeCell, Spider, Pyramid, Golf, Busy Aces, Canfield, Forty Thieves, Diplomat, Four ...
Spider Collection (Popularity: ) : Spider Collection is World's Largest Spider Solitaire Games Collection with 62 Spider Solitaire Games including 11 standard spider solitaire games and 51 original games. All standard spider solitaire games are included like Beetle, Double Scorpion, Scarab, Scorpion, Simple Simon,Spider, Spidercells, ...
My Solitaire (Popularity: ) : My Solitaire is World's Top 100 Popular Solitaire Card Games Collection. All main solitaire games included like Freecell, Klondike, Spider, Baker's Dozen, Canfield, Forty Thieves, Fan, Beleaguered Castle, Sir Tommy, Four Seasons and Yukon. My Solitaire features 999 trillion(999,999,999,999,999) shuffles, ...
Freecell Collection (Popularity: ) : Freecell Collection is World's Largest Freecell Solitaire Games Collection with 62 Freecell Games including 14 standard Freecell games and 48 original Freecell games. All standard freecell solitaire games are included like Baker's Game, Bastion, Eight Off, Forecell, Four Colors, Freecell, ...
Klondike Collection (Popularity: ) : Klondike Collection is World's Largest Klondike Solitaire Games Collection with 62 Klondike Solitaire Games including 25 standard Klondike Solitaire games and 37 original games. All standard klondike solitaire games are included like American Canister, Blind Alleys, British Canister, Canister, Carlton, ...
My Freecell (Popularity: ) : Create and play your own Freecell Games with this highly customizable Freecell Game Studio. You can customize entire freecell game rules by selecting Number of Tableau piles, Tableau arranging order, Foundation arranging order, foundation base card, number of cards in ...
Freecell Collection (Popularity: ) : Freecell Collection is World's Largest Freecell Games Collection with 62 Freecell Games including 14 standard games and 48 original games which you will not find anywhere else. Freecell Collection has many new features like 999 trillion(999,999,999,999,999) shuffles,add/organize favorites,move incomplete games ...
Spider Collection (Popularity: ) : Spider Collection is World's Largest Spider Games Collection with 62 Spider Games including 11 standard games and 51 original games which you will not find anywhere else. Spider Collection has many new features like 999 trillion(999,999,999,999,999) shuffles,add/organize favorites, move incomplete ...
Klondike Collection (Popularity: ) : Klondike Collection is World's Largest Klondike Games Collection with 62 Klondike Games including 25 standard games and 37 original games which you will not find anywhere else. Klondike Collection has many new features like 999 trillion(999,999,999,999,999) shuffles,add/organize favorites, move incomplete ...
Salaat Time (Popularity: ) : Salaat Time is a FREE multi-function Islamic application that calculates the prescribed five daily Muslim prayer times as well as Qiblah direction for anywhere in the world.

It rests in the system tray and at the prescribed times the athan ...

ad


Rate me
supported os
Linux
Mac OSX
Macintosh
Win All, BSD, Solaris
stats
downloads 7
version 1.0
size in Kb 10
popularity   
822/370775
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews