Description Usage Arguments Details Value Note Author(s) Examples
Given two sorted arrays, x and y, find indices L that ‘zips’ the two together.
1 2 3 |
sortx |
a sorted array of ‘reference’ values. |
looky |
a sorted array of values whose place among |
For example, for zip_le
, we find the array L of the
same length as y such that there are exactly L_i elements of x
less than or equal to y_i.
a vector, filled out as follows:
Returns the vector L such that there are exactly L_i elements of x less than or equal to y_i.
Returns the vector L such that there are exactly L_i elements of x less than y_i.
Returns zero when there are none, as expected.
it would be better if this code supported mixed types of sortx and looky.
Steven E. Pav shabbychef@gmail.com
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.