Skip to content

Instantly share code, notes, and snippets.

View amaral220x's full-sized avatar

Gabriel Amaral amaral220x

  • Rio de Janeiro
View GitHub Profile
@amaral220x
amaral220x / script.py
Created October 6, 2025 18:27
Calculos prob_gaussiana
import math
import numpy as np
## Calcula a probabilidade de uma observação x em uma distribuição normal
# Caso positivo
mean_pos = [0.517, 0.423]
cov_pos = [[0.0086335, -0.006541], [-0.006541, 0.0196335]]
x7 = [0.45, 0.80]
@amaral220x
amaral220x / increment.c
Created September 6, 2022 12:41
Lab 1 Programação Concorrente
//Gabriel Amaral DRE: 121069963
#define TAM 10000
#define NTHREADS 2
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
double vetor[TAM], copia[TAM];
void *incrementa(void *arg){
@amaral220x
amaral220x / spfcxffc.ipynb
Created May 31, 2021 01:21
SPFCxFFC.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.