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.201.092 Times

RANDINTERVAL 1.0

  Date Added: September 08, 2013  |  Visits: 439

RANDINTERVAL

Report Broken Link
Printer Friendly Version


Product Homepage
Download (46 downloads)



R = RANDINTERVAL(N, INTERVALS) returns a N-by-N matrix R of random numbers taken from a uniform distribution over multiple intervals. Similar to RAND, RANDINTERVAL([N M],..) returns a N-by-M matrix, and RANDINTERVAL([N M P ...],..) returns a N-by-M-by-P-by-.. array. Note that a notation similar to rand(N,M,P,..) is not available. INTERVALS is a N-by-2 matrix in which the rows specify the intervals from which the numbers are drawn. Each interval is given by a lower bound (in the first column of INTERVALS) and an upper bound (2nd column of INTERVALS). If the lower bound equals the upper bound, no numbers will be drawn from that interval. The upper bound cannot be smaller than the lower bound.If INTERVALS is a vector (K-by-1 or 1-by-K), the intervals are formed as (INTERVALS(1),INTERVALS(2)), (INTERVALS(2),INTERVALS(3)), ..., (INTERVALS(K-1),INTERVALS(K)). In this case, the number of intervals N is one less than the number of elements K, i.e., N=K-1. The relative length of an interval determines the likelihood that a number is drawn from that interval. For instance, when INTERVALS is [1 2 ; 10 12], the probablity that a number is drawn from the first interval (1,2) is 1 out of 3, vs 2 out of 3 for the second interval (10,12). R = RANDINTERVAL(N, INTERVALS, WEIGHTS) allow for weighting each interval specifically. WEIGHTS is vector with N numbers. These numbers specify, in combination with the length of the corresponding interval, the relative likelihood for each interval (i.e., the weight). Larger values of W(k) increases the likelihood that a number is drawn from the k-th interval.For instance, when INTERVALS is [11 12 ; 20 21] and WEIGHTS is [3 1], the probability that a numbers is drawn from the first interval is 3 out of 4, vs 1 out of 4 for the second interval. Note that both intervals have the same length. When the intervals do not have the same lengths, the likelihood that a number is drawn from an interval k, with length L(k) and weight W(k) is given by the formula: p(k) = (W(k) x L(k)) / sum(W(i) ./ L(i)),i=1:N [R, IND] = RANDINTERVAL(..) also returns a index array IND, which has the same size as R. IND contains numbers between 1 and the number of intervals. Intervals with zero length and/or a weight of zero will not be present in IND. Notes:- overlapping intervals are allowed, but may produce hard-to-debug results. In this case a warning is issued. On the other, such overlapping intervals could be (ab-)used to draw from specific distributions.- for a single interval (A B) this function is equivalent to A + (B-A) * rand(N) Example of basic use without weights:randinterval([1,10000], [1 3 ; 5 7 ; 10 15 ; 20 26]) ;returns a row vector with 10000 numbers between 1 and 3, between 5 and 7, between 10 and 15, or between 20 and 26. Approximately 2/5 of the numbers is between 20 and 26.More examples are given in the help section.Version 1.0, oct 2008

Requirements: No special requirements
Platforms: Matlab
Keyword: Allowed Andor Index Intervals Lii Notes Overlapping Randinterval
Users rating: 0/10

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


RANDINTERVAL RELATED
Modules  -  WP_PostNotes 2.5.1
Other users that are allowed to view to the notes can also be specified.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress
 
MP3 Tools  -  Name It - Notes 1.0.0
We have developed a program that helps you improve your sight reading of piano or keyboard sheet music. Please visit our website for more detailed information. This is a Demo version, which is limited to the C major key in the treble clef....
1.42 MB  
Notes Management Tools  -  Magic Notes 3.3
Magic Notes is a feature-packed sticky note utility for Windows computers. Now you don't need to launch a memory-hogging word processor or PIM to create or manage your notes! A single-click on the system tray icon creates a new note. Notes can...
677 KB  
Business  -  Manny's Simple Note Cards 1.01
Visual alternative to linear to-do lists. Creates index cards for notes and tasks, and displays them in color-coded categories. Cards can be grouped by priority or date (with optional alarms). Up to 400 cards can be created. Cards can be...
2.13 MB  
Collecters Tools  -  FileWISE Deluxe Software 1. 3. 1981
Have you ever searched everywhere to locate an important file and still cannot find it? fileWISE Deluxe Software is the world's first software to help you organize, manage & find your paper documents / files PLUS all of your computer files using...
19.75 MB  
Education  -  Auralia 4.0.7.21
Auralia's drill based teaching is a fun and easy way to use your computer for ear training. Auralia leads you through a variety of graded exercises, and presents instant feedback. All of your results are recorded, and you may sing or play your...
1024 KB  
Development Tools  -  Generate help files from m-files 1.0
These functions read the comments from the m-function (or script) marks them up. It is based on Matlab's publish function.It is also possible to inculde examples and simple LaTeX formulas within the help text.To create the help file for a single...
112.64 KB  
MP3 Tools  -  Chord Practice Buddy 1.0.4
Do you know how to form major, minor, diminished, augmented and lots of other chords? That's good, but if I tell you to play a G sharp diminished seventh in second inversion, can you play it without hesitating? You don't want to ask friends or...
1.35 MB  
Business  -  Power Notes 3.66
The program Power Notes is a desktop notes organizer, reminder and scheduler for Windows allowing you to create electronic stickers and display them when the time is due. The program is very easy to use and has low system requirements. The...
2.58 MB  
Networking  -  Plugin Notes 1.0
Allows you to add notes to plugins. Useful when you're using lots of plugins and/or make modifications to a plugin and want to make a note of them, and/or work on your WordPress install with a group of people.
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