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
-1
votes
3 answers

What is the first minimum OR saddle point (calculus derivative) of a numpy array?

I have the following numpy array which is depicted above. Functions like print(arr.argsort()[:3]) will return the three lowest indeces of the three lowest value: [69 66 70] How do I return the first index where the first minimum or first saddle…
Ivan
  • 7,448
  • 14
  • 69
  • 134
-1
votes
2 answers

select minimum data for bunch of records

I have this table : I want to find minimum date_time value for each bunch of colored record, that is, the result of the table will be this table. Which SQL command is needed?
-1
votes
1 answer

Finding minimum of a function with N variables

I'm trying to code an algorithm to locate the minimum of Rosenbrock function that may have N variables. When N = 2, I can easily figure it out. The code that I'm using for N = 2 is below: double y,z,x, aux1, aux2; double menor = INT_MAX; y =…
Ericli
  • 11
  • 2
-1
votes
4 answers

Minimum value from two arrays

I have two arrays a=([2,3,5]) and b=([-2,3.2,10]) How can I get minimum value from these two arrays? Expected answer is -2
Aristocrat
  • 103
  • 1
  • 1
  • 5
-1
votes
2 answers

Find minimum non-used value from collection of rows marked with an id and customId

I already saw a similar question here(Get minimum unused value in MySQL column) which is exactly what I want except what I need to select the minimum available number not from just a table but from rows with specific customId as well. In case the…
Moe Epo
  • 92
  • 9
-1
votes
1 answer

Looking for minimum between a range of index in a dictionary python

I am looking for minimum between a range of index in a dictionary; for instance: A = {1: -3, 2: -5, 3: 4, 5: 12, -34: 23, 64: 32} I want to find: min(A[2..5]) = min(A[2] A[3] A[4]A [5]) = -5 Is this possible?
Sa Na
  • 25
  • 5
-1
votes
1 answer

Get Lowest Price in Array of Objects

I have an array of objects called cars that contains search result listings. In each listing there is an attribute called data-price. Array Object Example
  • Michael
    • 403
    • 1
    • 9
    • 28
  • -1
    votes
    2 answers

    How to print proper minimum and maximum from user input

    I am trying to write a program that allows a user to enter in a number of random grades they want to display along with the sum, average, minimum and maximum of the generated list. The grades range from 60 - 100. The program is printing the min…
    cm1917
    • 43
    • 3
    -1
    votes
    3 answers

    find the minimum and maximum value in array group php

    Array ( [0] => Array ( [package] => LTE_15AGB [value] => Array ( [0] => 52690 [1] => 24700 [2] => 43972 [3] =>…
    Arebhy Sridaran
    • 586
    • 12
    • 28
    -1
    votes
    2 answers

    Find address of minimum after a maximum

    I have the following set of values in Column A of excel sheet. 0 99 159 199 225 242 254 262 267 270 271 269 266 259 249 238 224 208 193 178 166 156 151 150 150 150 150 150 150 150 0 is the minimum and 271 is the maximum for the entire column. A…
    -1
    votes
    4 answers

    How to find lowest index of min number in array java?

    Except 0, how to find a min. number in array : myMethod() { for (i - 0 to i - length) { int currentMin = value_at_first_Index; if(currentMin > value_at_first_Index) currentMin = value_at_first_Index; } …
    djay
    • 375
    • 2
    • 18
    -1
    votes
    1 answer

    stuck with getting two minimums of several variables

    I'm pretty new to PHP, still learning, but I just cant get the solution. I have 3 variables $line1 = 5; $line2 = 3; $line3 = 7; I need a hint on how to get the 2 lowest variables and IF the sum of those 2 variables is higher than the 3rd…
    Emielh
    • 9
    • 1
    -1
    votes
    2 answers

    Return Minimum value excluding 0 in form calculation

    I'm trying to return the minimum value in a series of numeric input fields. When the fields are blank, they are being read as 0. Math.min is returning 0 unless all fields are populated with values. See below code, I'd appreciate any help on…
    -1
    votes
    2 answers

    How to find minimum value every x values in an array?

    path = ("C:/Users/Calum/AppData/Local/Programs/Python/Python35-32/Python Programs/PV Data/Monthly Data/brunel-11-2016.csv") with open (path) as f: readCSV = csv.reader((islice(f, 0, 8352)), delimiter = ';') irrad_bru1 = [] for row in…
    -1
    votes
    1 answer

    WooCommerce checkout minimum order based on city

    I am new to woocommerce so I need you help to findout the issue i am trying to solve from last 3 days. In short, I have a pizza store at 5 locations. There is a minimum order per location. In checkout I made a custom city select option field based…
    Sanjay Kumar
    • 415
    • 4
    • 9
    • 19