Questions tagged [minimum]

Minimum refers to the value in a collection of values that is the least or smallest.

In mathematics, the minimum of a function is the smallest value that the function takes at a point either within a given neighborhood (local or relative minimum) or on the function domain in its entirety (absolute minimum).

Examples

Python

>> import numpy as np
>> np.min([0, 1, 2])
0

See also

1056 questions
5
votes
2 answers

Finding the minimum distance in a table

I have a table of dimension m * n as given below 2 6 9 13 1 4 12 21 10 14 16 -1 Few constraints about this table: Elements in each row is sorted in increasing order (natural ordering). A -1 means the cell is of no…
dharam
  • 7,882
  • 15
  • 65
  • 93
5
votes
2 answers

Minimum version for Storyboards in xcode iphone

I am working on Storyboards.I need to know the minimum version of ios that i can set befor making the Build and submit on App store.Can i use ios 4.0 as a target.Will it run on version below ios 5...? Is there any solution to it.? Any help would be…
Vikas Ojha
  • 444
  • 1
  • 8
  • 23
4
votes
5 answers

Implementing Geometric Median

When I google for Geometric median, I got this link Geometric median but I have no clue how to implement it in C . I am not very good at understanding this Mathematical Explanation. Lets Say I have 11 pair of co-ordinates how will I calculate the…
selva
  • 51
  • 1
  • 5
4
votes
4 answers

How do I declare MAX_DOUBLE in VB6?

According to the MSDN help for VB6 Floating-point values can be expressed as mmmEeee or mmmDeee, in which mmm is the mantissa and eee is the exponent (a power of 10). The highest positive value of a Single data type is 3.402823E+38, or 3.4 times 10…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
4
votes
1 answer

Set min/max for each range handle in jQuery UI slider?

I'm using a jQuery slider where users can select a time range between 00:00 and 1d+12:00. 36 hours all together. Anyway. I would like to apply min and max values to my handles based on what they're set to. These are my requirements: left handle can…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
4
votes
1 answer

find max or min in excel, with conditions

In my spreadsheet I have a column with negative and positive values. I need to get the minimum among all positive values and the maximum among all negative ones. How can I do so?
Ricky Robinson
  • 21,798
  • 42
  • 129
  • 185
4
votes
2 answers

Minimum and maximum sequential values of a vector

I need to find the minimum and the maximum values of a vector, but the minimum one needs to be positioned inside before the maximum one. So, given the vector: v <- c (8,2,1,3,5,7,4) the minimum value would be '1' (the 3rd element) and the maximum…
Arturo
  • 342
  • 1
  • 4
  • 14
4
votes
1 answer

Java Stream minimum with known bound

I have a Stream of Lists of which I want to get the entry with the least elements. I could of course do something like Stream> s = ... s.min((e1, e2) -> e1.size() - e2.size()); But in a case like this, we know a lower bound for the minimum,…
leyren
  • 524
  • 6
  • 20
4
votes
5 answers

Minimum number of digit changes to get two arrays to have the same value

I am pretty new to coding and I'm trying my best, but after hours and hours of research i still cant figure this out. I'm trying to make these two separate arrays the same with the minimum number of moves. I can only ++ or -- one number at a time.…
zrwhite151
  • 79
  • 1
  • 2
  • 8
4
votes
6 answers

Finding the minimum in an unsorted array in logarithmic time

Is there an algorithmic approach to find the minimum of an unsorted array in logarithmic time ( O(logn) )? Or is it only possible in linear time? I don't want to go parallel. Thanks Michael
Michael Eilers Smith
  • 8,466
  • 20
  • 71
  • 106
4
votes
1 answer

Earliest date in VBA/Excel gives 00:00:00

I have a set of dates pulled from a PivotTable (which can either be accessed straight from the PT or I can copy it into a new sheet - I'm not fussed either way) and I need both the earliest and latest date e.g. Scheduled…
4
votes
2 answers

Is there a way to check a form before submitting it to see if ANY of the checkboxes have been checked?

Is there a way to check a form before submitting it to see if ANY of the checkboxes have been checked in Javascript? Something like... function checkboxcheck(){ /*something in here to check name="brands[]" checkbox array?*/ } Basically I just want…
NCoder
  • 325
  • 3
  • 10
  • 25
4
votes
2 answers

Matlab: replace element in matrix by the minimum of the row excluding itself

I want to replace each element by the minimum of its row, other than the element itself. Example: input In = [1 2 3; 4 5 6; 7 8 9], output out = [2 1 1; 5 4 4; 8 7 7] EDIT: without for loop, unless computationally more efficient
f380cedric
  • 215
  • 2
  • 7
4
votes
1 answer

Scipy.optimize.minimize using a design vector x that contains integers only

I'd like to minimize some objective function f(x1,x2,x3) in Python. Its quite a simple function but the problem is that the design vector x=[x1,x2,x3] constains integers only. So for example I'd like to get the result: "f is minimum for x=[1, 3,…
JaapJ
  • 41
  • 1
4
votes
1 answer

Finding very top and bottom peaks of data using Matlab

I have a set data and I'd like to find the upper and lower peaks of it. In Matlab, I am trying findpeaks command, but the result is strange. Here is my simple code: [pks,locs] = findpeaks(Data); plot(locs,pks,'or') and here is the result: Can…
NESHOM
  • 899
  • 16
  • 46