% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/evidence-grade-per-attribute.R
\name{compute_per_attribute_evidence_grade}
\alias{compute_per_attribute_evidence_grade}
\title{Per-attribute provenance-aware evidence grade}
\usage{
compute_per_attribute_evidence_grade(pedon)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}
}
\value{
A \code{data.table} with columns \code{horizon_idx},
        \code{attribute} and \code{grade}, sorted by horizon then
        attribute. A pedon with no provenance entries yields a
        zero-row table.
}
\description{
Resolves the evidence grade of every \code{(horizon, attribute)} cell
that carries a provenance entry. Where a cell has more than one entry
(a value re-sourced over the profile's lifetime) the most authoritative
source wins, mirroring \code{\link{PedonRecord}}'s own authority order.
}
\details{
Grades: \code{A} measured, \code{B} predicted from spectra, \code{C}
inferred from a spatial prior, \code{D} extracted by a vision-language
model, \code{E} user-assumed.
}
\examples{
p <- make_ferralsol_canonical()
compute_per_attribute_evidence_grade(p)   # all-measured -> all grade A
}
\seealso{
\code{\link{classify_from_photos}}, the global
         evidence grade reported on every \code{\link{ClassificationResult}}.
}
