View README.md
indecis.it distances
Usando gli op open data di indecis.it possiamo provare a determinare le distanze (in termini quantitativi) tra le posizioni delle liste.
Let’s do the math
Siano:
View GrenobleCloud.md
Appunti Cloud Grenoble
Esplorazione
Seguendo questo video si può copiare la chiamata che restituisce un file xml con le info di questa pagina web.
In questo caso la chiamata da copiare e incollare sul nostro terminale linux è
curl 'https://cloud.grenoblealpesmetropole.fr/public.php/webdav/Arr%C3%AAt%C3%A9s%20de%20circulation' \
-X 'PROPFIND' \
-H 'Accept: */*' \
View sigvalue_bestfit.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function r = bravpear(x,y) | |
% coefficiente di Bravais-Pearson | |
r = sum((x - repelem(mean(x),length(x),1)) .* (y - repelem(mean(y),length(y),1))) ./ ( sqrt(sum((x - repelem(mean(x),length(x),1)).^2) .* sum((y - repelem(mean(y),length(y),1)).^2)) ); | |
end | |
% uncertainty significative rounding | |
function dx = usiground(dx) | |
% numero decimali | |
n = abs(floor(log10(dx))); | |
View polynomial_interpolation.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Polynomial interpolation | |
% cleaning | |
clc | |
clear | |
% funzione seno | |
sen = @(x) sin(2*pi*x); | |
% genero vettori |
View rscript.r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importo librerie | |
library(tidyverse) | |
library(ggplot2) | |
# importo dati | |
df <- read.csv("http://dati.ustat.miur.it/dataset/3dd9ca7f-9cc9-4a1a-915c-e569b181dbd5/resource/ad5a1516-ccd3-4eb8-a889-f584f04de578/download/13_iscrittixcorso.csv",sep=";") | |
# filtro e visualizzo | |
df %>% | |
filter(AteneoNOME=="Catania", ClasseNUMERO=="L-30") %>% |
View crea_istogramma.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESERCIZIO | |
- crea un vettore di interi random | |
- crea file csv | |
- salva il vettore su file csv | |
- crea script matlab che importa e visualizza istogramma del file csv | |
*/ | |
/* includo librerie */ | |
#include <stdio.h> |
View aiad.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importo librerie | |
library(tidyverse) | |
library(rvest) | |
# numero pagine | |
n <- read_html("https://aiad.it/aziende-federate/") %>% | |
html_nodes("li:nth-child(5) .page-numbers") %>% | |
html_text(., trim = TRUE) %>% | |
as.numeric() |
View README.md
Stima del $\pi$ utilizzando il metodo Monte Carlo
Descrizione
file | descrizione |
---|---|
pi.c |
Programma scritto in C che applica il metodo Monte Carlo per stimare il valore di |
data.csv |
Output di pi.c ; dataset csv con le stime di |
Istruzioni
Per ottenere i dati in formato csv
lanciare da terminale
View README.md
Stima del $\pi$ utilizzando il metodo Monte Carlo
Istruzioni
Per ottenere i dati in csv
lanciare da terminale
gcc pi.c -o pi && ./pi > data.csv
Note
- il file
data_1.csv
contiene le stime di$\pi$ relative ad una circonferenza di raggio 1 e 10mila punti.
NewerOlder