Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.326.450 Times

Random Weighted Selection 1.0

  Date Added: July 21, 2013  |  Visits: 306

Random Weighted Selection

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



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.

Requirements: No special requirements
Platforms: Matlab
Keyword: 222b3 322b3 322b32b5 522b32b5 Infinities Permutation Results Returns Zeros
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


RANDOM WEIGHTED SELECTION RELATED
Database Tools  -  Qexec 1.0
Qexec establishes database connections, executes queries and returns the results in arrays. Query text literal values can also be escaped.
10 KB  
Web Searching Tools  -  FoxyWebSearch 1.45
A Firefox add-on that provides you the possibility to optimize your searches The FoxyWebSearch add-on enhance your browser with smart websearch features. More and better matching results by...
51.2 KB  
Libraries  -  AxKit::XSP::ESQL 1.4
AxKit::XSP::ESQL is an Extended SQL taglib for AxKit eXtensible Server Pages. SYNOPSIS Add the esql: namespace to your XSP tag: < xsp:page language="Perl" xmlns:xsp="http://apache.org/xsp/core/v1"...
6.14 KB  
Miscellaneous  -  Getting th permutation of a sequence 1.1
This script contains a function that given a sequence and a number n as parameters, returns the th permutation of the sequence (always as a list).
 
Utilities  -  123 Search Results Buddy 2.1
123 Search Results Buddy 2.1 will let you do a internet search, by right clicking on highlighted text. search results
1.69 MB  
Miscellaneous  -  A recursive function to get permutation of a list 1.2
A recursive function to get permutation of a list script allows you to make permutation on a list of objects. The script does not work on repeated items in the list.
 
Miscellaneous  -  Examination Results Explorer 0.0.1
ERE-The Examination Results Explorer is an advanced web application basically designed to give the students of a school, and the school faculty, access to a detailed and analytical view of their examination results...
 
Form Processors  -  Remove Returns 1.1
This script converts carriage returns in a string to the tag so that the input can be properly displayed in HTML.Without the script, returns in an input field are not preserved when submitting in a form. It is useful for guestbooks or other times...
10 KB  
Communication  -  Continuous Dynamic Time Warping 1.0
If you pass in 2 vectors it returns the unnormalized distance between the vectors, the accumulated distance between them, the length of the warping path (the normalizing factor), the warping path points and both warped input vectors.You can plot...
10 KB  
Development Tools  -  Simulink Modelling of a 3 phase Induction Motor Using its test results 1.0
The 3 phase induction motor is modeled to accept the No-Load & Blocked rotor test results for determining the equivalent circuit parameters. The model is used to simulate various performance characteristics. these characteristics can be viewed...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB