You are on page 1of 3

tiempo=$1

unidad=$2

num_monitoreos=$3

Hallar la Entropía Binaria aplicando la fórmula.

numero 6

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(7)
H

S2

=∑

Si

σi

log 1

(
σi

# Validar unidad de tiempo ingresada

if [ "$unidad" == "segundos" ]; then

intervalo=$tiempo

elif [ "$unidad" == "minutos" ]; then

intervalo=$((tiempo * 60))

if [ "tiempo" >= "2" ]; then


#https://bioinf.comav.upv.es/courses/unix/scripts_bash.html

echo "OK, Valor arriba del rango minimo"

else

echo "coloque un valor mayor"

exit 1

numero 1

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(2)

numero 2

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(3)

numero 3

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(4)

numero 4

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(5)

numero 5

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(6)

numero 6

.styleTable > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(2) > ul:nth-child(2) > li:nth-child(7)

You might also like